fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n = 0;
  6. while (n <= 0)
  7. {
  8. scanf("%d\n", &n);
  9. printf("%d\n", n);
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 1792KB
stdin
-7
-8
-4
3
-5
stdout
-7
-8
-4
3