#include <iostream> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { int a , b ; printf("请输入两个数:(格式如下:1 2 )\n"); scanf("%d %d" , &a , &b); int c = a + b; printf("%d" , c); return 0; } |
Double click to view unformatted code.