#include <stdio.h> int main(int argc, char const *argv[]) { int a, b; printf("请输入a,b的值"); scanf("%d %d", &a, &b); printf("%d + %d = %d", a, b, a + b); return 0; }
1
2
3
4
5
6
7
8
9
10
11
|
#include <stdio.h>
int
main
(
int
argc
,
char
const
*
argv
[
]
)
{
int
a
,
b
;
printf
(
"请输入a,b的值"
)
;
scanf
(
"%d %d"
,
&
a
,
&
b
)
;
printf
(
"%d + %d = %d"
,
a
,
b
,
a
+
b
)
;
return
0
;
}
|