最新回答 / qq_慕九州7398983
没明白你的问题flag就是用来确定每次循环是加还是减的第一轮是加flag就是“正”1,第二轮是减,flag就是“负”1每轮flag乘“-1”,flag也就每轮变换正负,或者说加减了
2019-01-26
最赞回答 / 慕九州8178394
#include <stdio.h>int main() { printf("你是我的小呀小苹果儿\n"); printf("怎么爱你都不嫌多\n"); printf("红红的小脸温暖我的心窝\n"); printf("点亮我生命的火 火火火火\n");return 0;}
2019-01-26
最赞回答 / 慕姐9530056
现在可以了 哈哈哈#include <stdio.h> float fn(int x,int y){ //x是公里y是时间 float sum; if(x<=3) { sum=14; printf("车费14"); } else { if(((y>=23)&&(y<24))||((y>=0)&&(y<5))) { sum=2.3*(x-3)...
2019-01-25
最新回答 / Labster
1、include <stdio.h>前面要加#2、int test(int o){ printf("小明在慕课网上已经参与学习了%d门课程",o);}这部分你用了int就要在末尾写return 0 ;还有你的printf中内容的逗号要用英文的逗号修改后:#include <stdio.h>/* 考虑一下哪个输出该用无参函数哪个输出该用有参函数呢? */int test(int o){ printf("小明在慕课网上已经参与学习了%d门课程",o); return 0;...
2019-01-25
最新回答 / 慕工程7049237
#include <stdio.h>#define POCKETMONEY 10 //定义常量及常量值int main(){ printf("小明今天又得到%d元零花钱\n", POCKETMONEY); return 0; }
2019-01-24