fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a, b, c;
  5.  
  6. scanf("%d", &a); // Correct
  7. scanf("%d", &b); // Correct
  8.  
  9. c = a * b;
  10. printf("a = %d, b = %d, a*b = %d", a, b, c);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5292KB
stdin
2
5
stdout
a = 2, b = 5, a*b = 10