帮我生成一段C代码
#include <stdio.h>
int main() { int num1, num2, sum;
printf("Enter first number: ");
scanf("%d", &num1);
printf("Enter second number: ");
scanf("%d", &num2);
sum = num1 + num2;
printf("%d + %d = %d", num1, num2, sum);
return 0;
}
// This program asks the user to enter two numbers, adds them together, and then outputs the sum.
原文地址: https://www.cveoy.top/t/topic/qDD 著作权归作者所有。请勿转载和采集!