#include<stdio.h>
main (){
double I;
printf ("Enter the value : ");
scanf ("%lf",&I);
while(I<=0){
printf("**Value must be greater than 0.0\n");
printf("**Try again. : ");
scanf ("%lf", &I);}
WHAT DO I HAVE TO ENTER HERE?
printf(" I is %lf\n", I);
}
Hi! I create a code so that it checks if the value is negative it asks
the user again till it get a a value that's greater then 0 but after it has done that how do i check if the user has entered a value that ends with a period( 5.. or 5.5. or -5..), how do i return a error msg.