#include <stdlib.h> #include <stdio.h> int main() { int a,b,c; a=1; b=1; c=a+b; printf("a+b输出结果为:%3d\n",c); //%3d 控制c的值占三个字符输出,右对齐,左边用空格补齐 system("pause"); //按任意键继续 return 0; }