#include<stdio.h>
int main()
{
int num,count=0,i=0;
scanf("%d",&num);
printf("num++=%d\n",num++);
printf("num=%d\n",num);
printf("++num=%d\n",++num);
printf("num=%d\n",num);
return 0;
}
/*10
num++=10
num=11
++num=12
num=12
Press any key to continue
*/
//注意:在两个数做运算时,只要有一个是浮点数,计算的结果均为浮点数!
时间: 2024-10-03 10:46:46