C Language - Do - While Loop
#include <stdio.h>
#include <conio.h>
int main()
{
int num, value = 0;
printf ("Enter a numbre \n");
scanf ("%d", &num);
do {
printf ("%d\n", value + 1);
value = value + 1;
} while (value < num);
if (num<0 ) {
printf ("Please enter integer value without decimal point and without letters \n");
}
}
// ScreenShots:
Comments
Post a Comment