yanmensnow
发表于 2018-9-26 06:01:48
谢谢小甲鱼
wyz950812
发表于 2018-9-26 09:55:33
123
王小二°
发表于 2018-9-26 10:17:40
S1E16
0.
10
1.
0.
2.
左值是A
3.
a.14
b.5
c.9
4.
x>0?z:-z
5.
A.
if (size>12)
{
cost = cost *1.05;
flag = 2;
}
else
{
bill = cost * flag;
}
B.
if(ibes>14)
{
sheds =3;
}
else if(sheds =2)
{
help = 2*sheds;
}
C.
#include <stdio.h>
int main(){
int count,score;
while((score = getchar())!='\n'){
scanf("%d", &score);
while(score>=0){
count++;
}
}
printf("count = %d\n", count);
}没做出来
动动手.
0.
#include <stdio.h>
int main(){
int k;//i代表小甲鱼的money,j代表黑夜的money, k计数循环次数
int i = 10000;
int j = 10000;
do {
i = i+ 10000 * 0.1;
j = j + j * 0.05;
k++;
}while(i>j);
printf("%d\n",k);
printf("%d\n",i);
printf("%d\n",j);
return 0;
}
1.
#include <stdio.h>
int main(){
long long intmoney;
int j;//money表示小甲鱼的资金,j计数
money = 4000000;
do{
money = money - 500000;
money = money + money * 0.08;
j++;
}while(money>0);
printf("%d",j);
}
2.
完全找不到头脑。
3.
数学不好求不来求不来
燃烧的水
发表于 2018-9-26 14:40:26
1
原助平
发表于 2018-9-26 21:54:04
1.10
2.0
3.a=14,b=5,c=9
4.
5.
A.
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
B.
if (ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2 * sheds;
C.
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
toni_kross6
发表于 2018-9-27 15:24:24
henhao!
zhulinjingxiang
发表于 2018-9-29 14:16:56
学习学习。
will1252590304
发表于 2018-9-29 16:41:19
答案
我是个汉子
发表于 2018-9-29 19:24:22
对答案
lz575757
发表于 2018-9-30 21:36:52
0.10个
1.0个
3.b=5 c=9,a=14
4.z=x>-x?x:-x
5.if(zise>12)
{
cost=cost*1.05;
flag=2;
}
elsebill = cost*flag;
if(ibex>14) sheds=3;
else
{
sheds=2;
help=2*sheds;
}
while(1)
{
scanf("%d",&score);
if(score<0) {
printf("count=%d\n",count);
break;
}
else count++;
}
0.#include<stdio.h>
int main()
{
float turtle=10000,black=10000;
int i=1;
while(i++)
{
turtle+=10000*0.1;
black+=black*0.05;
if(black>turtle)break;
}
printf("%d年后,黑超过甲鱼:\n",i-1);
printf("黑夜:%0.2f\n甲鱼:%0.2f\n",black,turtle);
return 0;
}
1.#include<stdio.h>
int main()
{
double Pi=0;
double m=1;
int i=-1;
for(;1/m>=0.00000001;m=m+2)
{
i=-i;
Pi+=i/m;
}
printf("Pi=%0.7f\n",4*Pi);
return 0;
}
2.#include<stdio.h>
int main()
{
int a=1,b=1;
//....
return 0;
}
沽月Sky
发表于 2018-10-3 21:19:08
朕想知道
沽月Sky
发表于 2018-10-4 00:48:50
动手题第3题的答案,应该是……对兔子,而不是只吧?
暴躁小可爱
发表于 2018-10-4 16:42:56
hhh
采薇杨柳依依
发表于 2018-10-5 00:39:29
0 10个
1 0
2 c b a
3 14 5 9
4 z = x>=0 ? x : -x
5
萌新℡主义者
发表于 2018-10-5 16:05:23
程序不能打印出A,进入死循环。
1. 程序不能打印出B。
2. 5.
3. a=14b=3 c=9
4.
5.
A.
if (size > 12)
{
cost = cost * 1.05;
flag =2;
}
bill = cost * flag;
B.
if (ibex > 14)
{
sheds = 3;
}
help = 2* sheds;
C.
if (score <0)
{
printf("count = %d\n",count);
}
count ++;
scanf("%d",&score);
好吗,好的
发表于 2018-10-5 18:25:55
K
张元昭
发表于 2018-10-5 22:16:06
🆗
HLJtrack
发表于 2018-10-6 23:10:25
答案
luckzjzhao
发表于 2018-10-7 11:07:41
支持楼主
skycrygg
发表于 2018-10-7 13:48:53
0.10
1.0个
2.1
3.6.6.10
4.z=x>0?x:-x;
5.