fork(1) download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void){
  5.  
  6. double x = 0;
  7.  
  8. while(x <= 0){
  9. printf("Enter a digit greater than 0.\n");
  10. scanf("%lf", &x);
  11. }
  12.  
  13. printf("%lf", x);
  14.  
  15. }
Success #stdin #stdout 0s 4468KB
stdin
4
stdout
Enter a digit greater than 0.
4.000000