APPLICATION OF DO- WHILE LOOP
#include <stdio.h>
void main()
{
int i = 10;
do{
printf("Hello %d\n", i );
i = i -1;
}
while ( i > 0 );
}
OUTPUT-
Hello 10
Hello 9
Hello 8
Hello 7
Hello 6
Hello 5
Hello 4
Hello 3
Hello 2
Hello 1
No comments:
Post a Comment