#include <stdio.h>
int main(void)
{
int vx,vy;
vx=57;
vy=21;
puts("请输入两个整数:");
printf("整数vx:");scanf("%d",&vx);
printf("整数vy:");scanf("%d",&vy);
printf("vx+vy=%d\n",vx+vy);
printf("vx-vy=%d\n",vx-vy);
printf("vx*vy=%d\n",vx*vy);
printf("vx%%vy=%d\n",vx%vy);
return 0;
}
运行成功
请输入两个整数:
整数vx:整数vy:vx+vy=78
vx-vy=36
vx*vy=1197
vx%vy=15
请问一下,scanf函数的作用是隐藏vx,vy的值吗???谢谢啦
慕粉2243144748
相关分类