Demonstrate the working of the do ... while statement.

#include <stdio.h>

int main(void)
{
int num;

num = 1;

do
{
printf("\n%d", num);
num++;
}while(num <= 10);

printf("\nOutside loop num = %d", num);


return 0;
}

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin