/*用c语言实现一个简单算术运算程序*/
#include <stdio.h>
int main(){
    int x,y;
    int r1,r2,r3,r4;
    x=1;
    y=2;
    
    r1=x+y;
    r2=x-y;
    r3=x*y;
    r4=x/y;
    printf("r1=%d\r\n",r1);
    printf("r2=%d\r\n",r2);
    printf("r3=%d\r\n",r3);
    printf("r4=%d\r\n",r4);
    return 0;
} 

posted on 2021-03-13 13:42  花语吖  阅读(12)  评论(0编辑  收藏  举报