//Loops(1) Solution Ex 4

#include <stdio.h>
#define NUMBER 6
void main()
{
	int guess=0;

	printf("I am thinking of a number...\n");
	printf("Try to guess what it is...it's between 1 and 10\n\n");

	while (guess != NUMBER)
	{
		printf("\nEnter your guess: ");
		scanf("%d", &guess);

		if (guess != NUMBER)
		{
			printf("Sorry that was wrong...I'll give you another go...");
		}
	}
	printf("You got it!\n");
}