C语言 计算输入的两个整数和
时间: 2023-09-25 16:15:12 浏览: 68
Sure, I can help you with that. Here's the code:
```
#include <stdio.h>
int main() {
int a, b, sum;
printf("Enter two integers: ");
scanf("%d%d", &a, &b);
sum = a + b;
printf("The sum of %d and %d is %d", a, b, sum);
return 0;
}
```
阅读全文