fork download
  1. #include <stdio.h>
  2.  
  3. int main( void )
  4. {
  5. int integer1;
  6. int integer2;
  7. int sum;
  8.  
  9. printf( "Enter first integer\n" );
  10. scanf( "%d", &integer1 );
  11.  
  12. printf( "Enter second integer\n" );
  13. scanf( "%d", &integer2 );
  14.  
  15. sum = integer1 + integer2;
  16.  
  17. printf( "Sum is %d\n", sum );
  18. }
  19.  
Success #stdin #stdout 0s 4280KB
stdin
Standard input is empty
stdout
Enter first integer
Enter second integer
Sum is -1861238692