Demonstrate the working of the while statement.

#include <stdio.h>

int main(void)
{
int num;

num = 1;

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

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