c/c++语法笔记 输入输出 scanf/printf 输入输出 scanf/printf #include <cstdio> using namespace std; int main() { int A, B; cin >> A >> B; //scanf("%d%d", &A, &B); printf("%d", A + B); printf("%.2d", A + B); return 0; }