1、#include
void main()
{ int x,y;
scanf("%d,%d",&x,&y) ;
printf("\n x*y=%d, x/y=%d \n",x*y,x/y);
}
5、#include
void main()
{ int a,b,c,n;
scanf("%d",&n);
a=n/100;
b=n/10%10;
c=n%10;
printf("%d\n",c*100+b*10+a);
}
6、#include
void main()
{
int sum=0;
for(int i=1;i<=100;i++)
{
if(i%2)
{
sum+=i;
}
}
printf("%d",sum);
}
27 3
27 3
1
#include
void main()
{
int x,y;
scanf(“%d,%d”,&x,&y);
printf(“\n x*y=%d, x/y=%d \n”,x*y,x/y);
}
2
#include
void max(int x,int y)
{
if(x>y)
printf("max=%d",x);
else
printf("max=%d",y);
}
void main()
{
int x,y;
scanf(“%d,%d”,&x,&y);
max(x,y);
}