Hi! how do you get this output?
Income for the current pay period : -24
**Value must be greater than 0.0
**Try again. : 24..
**Trailing character encountered
**Try again. : 24
When it gets a value higher than 0 it ends the program
i typed the few codes for the first one but for some reasons it doesn't
seem to be running and giving me what i need?
#include<stdio.h>
main (){
double A;
char b;
printf (" Income for the current pay period : ");
scanf ("%lf,%c",&A, &b);
while(A<0){
printf("**Value must be greater than 0.0\n");
printf("**Try again. : ");
scanf ("%lf", &A);}
???????????????
}