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