admin 管理员组

文章数量: 1086019


2024年3月25日发(作者:group by子句用来分组where子句的输出)

C语言程序设计部分实验参考答案

实验2

#include

int main(){//2-1-2

int c,f=150;

c=f*5/9-32*5/9;

printf("fahr=%d, celsius=%dn",f, c);

return 0;

}

#include

int main(){//2-1-3

int c=26,f;

f=c*9/5+32;

1 / 167

printf("celsius=%d, fahr=%dn",c, f);

return 0;

}

#include

int main(){//2-1-4

int math=87,eng=72,comp=93;

printf("math=%d, eng=%d, comp=%d,

(math+eng+comp)/3);

return 0;

}

#include

int main(){//2-1/5

int n=152,a,b,c;

c=n%10;

2 / 167

average=%dn",math, eng, comp,


本文标签: 子句 部分 程序设计 实验 参考答案