fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int number = 0;
  6. while(1)
  7. {
  8.  
  9. printf("Introduce a number: ");
  10. scanf("%i", &number);
  11.  
  12. if (number == 0)
  13. {
  14. break;
  15. }
  16. }
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
Introduce a number: