Online Compiler C

#include <stdio.h> int main() { int a,b,c; scanf("%d%d%d,&a,&b,&c");//%d%d%d是格式控制字符串,意思是读取3个整数,%d表示十进制整数 int sum = a + b + c int product = a * b * c; printf("%d+%d+%d=%d\n",a,b,c,sum); printf("%d*%d*%d=%d\n",a,b,c,product); return 0; }
1) This code aims to read three integers, calculate their sum and product, then print both results in a formatted way.

2) Hint: Check the `scanf` line carefully — there is a syntax error in the string and the placement of the closing quote. Also, look at the line where `sum` is calculated — it's missing a required symbol at the end.