You are on page 1of 1

#include <stdio.

h>
#include <stdlib.h>
main()
{
int b, L, E, a[9], i;
b = 50;
L = 10;
i = 0;
printf("1100 10 \n");
for(i = 0 ;i<=9 ; i++)
{
printf("%d\n ",L);
scanf("%d",&a[i]);
if( a[i] > b)
{
printf("!!\n");
L--;
}
if( a[i] < b)
{
printf("!!\n");
L--;
}
if( a[i] == b )
{
E = 1;
L = 0;
i = 9;
}
}
if(L == 0 && E == 1)
{
printf("!!");
}
else
{
printf("Game Over"); /*I don't know why the probram shows an error.*/
}
return(0);
}

You might also like