#define _CRT_SECURE_NO_WARNINGS
# include<stdio.h>
int main (void)
{
int x , y , a , b , c;
float d;
printf ("请输入x,y:\n");
scanf ("%d %d" , &x , &y);
a = x + y;
b = x - y;
c = x * y;
d = 1.0 * x / y ;
printf ("%d %d %d %.2f" , a , b , c , d);
return 0;
}
# include<stdio.h>
int main (void)
{
int x , y , a , b , c;
float d;
printf ("请输入x,y:\n");
scanf ("%d %d" , &x , &y);
a = x + y;
b = x - y;
c = x * y;
d = 1.0 * x / y ;
printf ("%d %d %d %.2f" , a , b , c , d);
return 0;
}
菜鸟一枚,求各位大神多多关照。