lz11115
发表于 2023-4-13 22:01:34
16
杰Sunny
发表于 2023-4-15 20:52:39
0. 100次
1. 11次
2. a
3. a = 14, b = 3, c = 9
4. z = x > 0 ? x:(-x)
Dengsanshou
发表于 2023-4-16 10:41:58
P16:拾遗
3.
#include <stdio.h>
#include <math.h>
int main()
{
int n;//months
int pair;//the number of rabits
int i;
int n1;
int n2;
printf("请输入繁殖月数:");
scanf_s("%d", &n);
if (n <= 2)
{
pair = 1;
n1 = 1;
n2 = 1;
}
n1 = 1;
n2 = 1;
for (i = 3; i <= n; i++)
{
pair = n1 + n2;
n1 = n2;
n2 = pair;
}
printf("%d月后,兔子的总对数为:%d\n", n, pair);
return 0;
}
尼古拉斯白嫖
发表于 2023-4-18 01:58:58
{:5_91:}
鱼落九天
发表于 2023-4-19 12:54:14
1
yukikonfire
发表于 2023-4-19 23:16:43
1
488
发表于 2023-4-21 13:38:16
答案
零度体温
发表于 2023-4-23 22:19:22
因离线学习需要,先获取答案,后面再上传自己的作业,保证先做作业再看答案~!
15619316772
发表于 2023-4-27 00:25:47
1
半墨流年
发表于 2023-4-28 21:01:47
来了
成成是我
发表于 2023-4-29 00:07:00
meinong
森屿大大
发表于 2023-5-1 23:39:56
1
Maysea
发表于 2023-5-3 14:32:55
1
森屿大大
发表于 2023-5-3 15:33:04
1
铁柱君
发表于 2023-5-4 12:12:15
1
lxycl99
发表于 2023-5-4 15:49:55
10
0
abc
a=16,b=4,c=9
#include <stdio.h>
int main()
{
int x,z;
printf("请输入一个数字:");
scanf("%d",&x);
z=-x;
printf("%d\n",x<0?z:x);
return 0;
}
#include <stdio.h>
int main()
{
int size;
int cost,flag;
printf("请输入一个整数:");
scanf("%d",&size);
if(size>12)
{
cost*=1.05;
flag=2;
}
else
{
bill=cost*flag;
}
return 0;
}
动动手
#include <stdio.h>
int main()
{
int fishc;
double night;
fishc=10000;
night=10000;
int fishc1=10000 ,i;
for(i=1;fishc>=night;i++)
{
fishc=fishc1+(1000*i);
night=night+night*0.05;
}
printf("%d年后黑夜的投资额超过小甲鱼!\n",i-1);
printf("小甲鱼的投资额是%d\n",fishc);
printf("黑夜的投资额是%f\n",night);
return 0;
}
#include <stdio.h>
int main()
{
double money=400;
int i;
for(i=0;money>=0;i++)
{
money=money-50;
money=money+money*0.08;
}
printf("%d年后",i);
return 0;
}
KEKEJIJI
发表于 2023-5-4 21:15:52
0
水月青瞳
发表于 2023-5-6 20:10:24
0.大概是10个?
1.10个
2.
3.10,3,4
4.见程序
邹啟
发表于 2023-5-8 18:04:25
0. 10个
1. 10个
2. a
3. a=15;b=5;c=10;
4. z =x > 0 ? x : -x;
5.
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
----------------------------------------
if (ibex > 14)
{
sheds = 3;
}
else{
sheds = 2;
}
help = 2 * sheds;
--------------------------------------
int score,count = 0;
while(score = scanf("%d", &score) >= 0){
count++;
}
printf("count = %d\n", count);
阿雨要学习
发表于 2023-5-10 12:03:04
1