Number Catching Game| C Languange|Busy

Basic game for c learners

#include
#include
#include

int main (void)
{

int playerNum, n,randNum,looop=1,loop=1,sum=0;
srand(time(NULL));



    
randNum=rand()%1000;
printf("Please enter a number for start:");


do{
scanf("%d",&playerNum);
sum++;
    
if(playerNum==randNum)
{
printf("Congrt, you find it %d",sum);

loop=0;
}
else if(playerNum>randNum)
{
    printf("Make smaller");
}
else
{
    printf("Make higher");
}

}while(loop==1);

return 0;

}

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now