Do While_1.4

#include "stdio.h"
int main (void)
{
    double x;
    do
    {


        scanf("%lf", &x);
        if(x<0)
        {
            printf("ERROR -    NEGATIVE VALUE FOR X\n");
            continue;
        }
    }
    while(x<=100);
    system("pause");
    return 0;
}

0 comments:

Post a Comment