SIMPLE WHILE LOOP APPLICATION USING BREAKS
#include <stdio.h>
main()
{
int i = 10;
while ( i > 0 )
{
printf("Hello %d\n", i );
i = i -1;
if( i == 6 )
{
break;
}
}
}
OUTPUT- Hello 10
Hello 9Hello 8Hello 7
No comments:
Post a Comment