问题:输入两个整数值x,y,输出这两个整数的和、差、积、商和余数。
#include<stdio.h>
void main()
{
int x,int y,int sum,int cha,int ji,int shang,int yu;
printf("inputx,y:");
scanf("%d,%d",&x,&y);
sum=x+y;
cha=x-y;
ji=x*y;
shang=x/y;
yu=x%y;
printf("sum=%d\n",sum);
printf("cha=%d\n",cha);
printf("ji=%d\n",ji);
printf("shang=%d\n",shang);
printf("yu=%d\n",yu);
}