//A Hello World for game
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int a=5, answer;
printf("I am guess number game\n\n"); getchar();
printf("I have a number\n\n"); getchar();
printf("...between 1 until 10...\n\n"); getchar();
printf("Try to guess: \n\n"); scanf("%d", &answer);
while(1){
if(answer<a){printf("\nYours %d, too small...\n\nInput again: ", answer); scanf("%d", &answer);}
if(answer>a){printf("\nYours %d, too big...\n\nInput again: ", answer); scanf("%d", &answer);}
if(answer==a){printf("\nYou're Right! My number is %d!\n\nDa daaag...", a); break;}
}
return 0;
}