最赞回答 / weixin_慕莱坞3091356
#include <stdio.h>int main(){ int age = 15; int height = 162; double weight = 82.5; char isfat = 'y'; printf("年龄:%d 岁\n", age); printf("身高:%d CM\n", height); printf("体重:%f KG\n", weight); printf("是否属于肥胖儿童:%c\n", isfat); /...
2022-03-13
最新回答 / qq_慕瓜4050626
#include <stdio.h>int main(){ int m,n,p,q,flag; int temp = 1 ; //默认是素数 int i =0 ; printf("请输入:\n"); scanf("%d %d",&m,&n); if(2<=m&&m<n&&n<=1000) //判断输入 { for(p=m; p<=n; p++) //从m开始判断是否是素数...
2022-03-12
最新回答 / bao_
没关系printf是指输出字符串的内容,下面的printf("%c\n", price <= money ? 'y' : 'n');涉及到变量,里面使用的变量需要定义赋值下载视频
2022-03-03