#include <stdio.h>
int main()
{
int a,b,c,d;
double result;
a = 1;
b = 2;
c = 3;
d = 4;
result = a+b+c+d; //在这里体验哦~
printf("%d\n", (int)result);
return 0;
}
运用上一节强制转换整形
int main()
{
int a,b,c,d;
double result;
a = 1;
b = 2;
c = 3;
d = 4;
result = a+b+c+d; //在这里体验哦~
printf("%d\n", (int)result);
return 0;
}
运用上一节强制转换整形
2020-01-23
已采纳回答 / weixin_慕用7591791
#include <stdio.h>int main() { int sale=120; //销售业绩为120万 int year=1; //刚刚进入公司1年 if(sale>100)//完善代码{ if(year>=2) { printf("%s\n","有资格"); } else { printf("%s\n"," 很遗憾,期望你再接再厉 "); }} else{ printf("%s\n",...
2020-01-22