#include <stdio.h>
int main(int argc, const char * argv[]) { int x,y; x=y=0; printf("请输入两个数:\n"); scanf("%d%d",&x,&y); printf("您输入的两个数分别是:\n%d,%d\n",x,y);
printf("%d + %d = %d\n",x,y,x+y); printf("%d - %d = %d\n",x,y,x-y); printf("%d * %d = %d\n",x,y,x*y); printf("%d / %d = %d\n",x,y,x/y);
printf("%d %% %d = %d\n",x,y,x%y); return 0; }
|