fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int a, b;
  5. printf("Enter two integers:");
  6. scanf("%d %d", &a, &b);
  7.  
  8. printf("Sum: %d\n", a + b);
  9. printf("Product: %d\n", a * b);
  10.  
  11. return 0;
  12.  
  13. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Enter two integers:Sum: -296856017
Product: -53859888