fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(void)
  5. {
  6. int dogs;
  7. printf("How many dogs do you have?\n");
  8. scanf("%d, &dogs");
  9. printf("So you have %d dog(s)!\n");
  10. return 0;
  11. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
How many dogs do you have?
So you have -1 dog(s)!