#include <stdio.h>
int main()
{
int i,num,a=1,b;
for(i=0;i<100;i++)
{
printf("Enter number:-\nEnter 0 to quit the program:-\n");
scanf("%d",&num);
if(a<num)
a=num;
else
printf("Number is less than previous bigger number\n");
if(num==0)
{
goto QUIT;
}
printf("The bigger number is %d \n",a);
}
QUIT:
printf("Quitting the program\n");
printf("BYE BYE !!!!!");
return 0;
}
Comments
Post a Comment