Why doesn't this c program print the statement hello
I think it should be print 11 times because loop executed 11 time
Can someone please explain the reason behind it?
I think it should be print 11 times because loop executed 11 time
Can someone please explain the reason behind it?
Code:
#include<stdio.h>
int main()
{
int x;
for(x=-1; x<=10; x++)
{
if(x < 5)
continue;
else
break;
printf("Hello");
}
return 0;
}
Last edited: