|
From: Jorge A. <jor...@ep...> - 2004-06-02 14:09:41
|
#include <stdlib.h>
Randy escribi=F3:
> This is the era I get what am I doing wrong
>
>
> implicit declaration of function `int rand(...)'
>
> #incude <stdio.h>
> =20
> main()
> {
> int target;
> int guess;
> int again;
> =20
>
> printf("\n Do you want to guess a number 1=3Dyes, 0=3Dno");
> scanf("%d",&again);
> =20
> while (again)
> {
> target=3Drand()%100;
> =20
> printf("\n What is your guess ? ");
> scanf("%d",&guess);
> =20
> while(target!=3Dguess)
> {
> if(target>guess)printf(" Too low ");
> else printf(" too high ");
> printf("\n What is your guess ? ");
> scanf("%d" ,&guess);
> }
> =20
> printf("\n Well done you got it! \n");
> printf("\n Do you want to guess a number 1=3Dyes, 0=3Dno");
> scanf("%d",&again);
> }
> }
|