WANGYUh
发表于 2023-6-5 20:56:34
0.10
1.9
2.?
3.15
4
10
4.
5.
rhyan
发表于 2023-6-5 21:38:10
。
Zarctic
发表于 2023-6-6 09:28:46
1
chai60610
发表于 2023-6-6 14:39:35
1
rookey
发表于 2023-6-6 16:23:41
1
AkiTomato
发表于 2023-6-6 22:21:41
最后一题是斐波那契数列吗
bxgzs
发表于 2023-6-8 19:57:14
1
hanruile
发表于 2023-6-8 21:38:12
、
jack6666
发表于 2023-6-9 22:38:26
1
CT-OF-GHOST
发表于 2023-6-9 23:14:47
0. x10
1. x11
2. a,b.c
3.a=1
b=5
c=10
4.#include<stdio.h>
int main()
{
int z,x;
printf("请输入z:");
scanf("%d",&x);
x<0?x:0;
z=abs(x);
printf("%d\n",z);
return 0;
}
5.
A.
if(size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
{
bill = cost * flag;
}
B.
sheds =2;
if (ibex > 14)
{
sheds = 3;
}
else
{
help = 2 * sheds;
}
c.
scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
count++;
}
else
{
scanf("%d", &score);
}
0.
#include<stdio.h>
#include<math.h>
int main()
{
double mj;
double mh;
int year;
for(year=1;;year++)
{
mj=10000+10000*0.1*year;
mh=10000*pow((1+0.05),year);
if(mh>mj)
{
break;
}
}
printf("%d年后,黑夜的投资超过小甲鱼。\n",year);
高级模式
BColorImageLinkQuoteCodeSmilies@朋友
printf("小甲鱼的投资额是:%.2lf\n",mj);
printf("黑夜的投资额是:%.2lf\n",mj);
return 0;
}
1.
jiaohy
发表于 2023-6-10 12:06:22
看答案捏
select_mll
发表于 2023-6-10 13:37:28
打卡
c程渣
发表于 2023-6-10 23:16:29
、
源冰源
发表于 2023-6-11 10:19:33
1
Félicie
发表于 2023-6-11 16:15:41
0.10
1.11
2.a b c
3.
14 5 9
4.
#include <stdio.h>
int main()
{
float x, z;
scanf("%f",&x);
if(x<0){
z=x*(-1);
printf("z=%.2f",z);
}
else{
z=x;
printf("z=%.2f",z);
}
return 0;
}
5.
if (size>12){
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
if(ibex>14){
sheds=3;
}
else{
sheds=2;
}
help=2*sheds;
scanf("%d',&score);
if(score<0){
printf("count = %d\n", count);
}
count++;
0.
#include <math.h>
#include <stdio.h>
int main()
{
float a, b;
int count=0;
while(1){
count++;
a=10000*(1+0.1*count);
b=10000*pow(1+0.05, count);
if(a<b){
break;
}
}
printf("%d\n", count);
printf("%.2f\n", a);
printf("%.2f\n", b);
return 0;
}
1.
#include <stdio.h>
int main()
{
int n=0;
float x=400;
while(1){
x=x*(1+0.08)-50;
if(x<=0){
break;
}
n++;
}
printf("%d\n", n-1);
return 0;
}
2.
#include <stdio.h>
#include <math.h>
int main()
{
int x=1, n, max;
double sum, i, j;
while(1){
j=1.0/(2*x-1);
if(j<pow(10, -8)){
break;
}
x++;
}
max=x;
for(n=1;n<max;n++){
i=1.0/(2*n-1);
if(n%2==0){
i=-i;
}
sum+=i;
}
printf("%.7f\n",4*sum);
return 0;
}
3.
for(i=1;i<=24;i++){
fruitcat
发表于 2023-6-15 14:09:18
1
斗爱鱼
发表于 2023-6-15 17:07:48
好好学习天天向上
haixinxin
发表于 2023-6-20 14:52:31
0. 9个A
1. 11个B
2. C B A
3. c=9b=5a=16
4. ?
5A. if (size > 12)
{
cost = cost * 1.05;
}
esle
{
bill = cost * flag;
}
flag = 2;
B. if (ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2 * sheds;
C. readin: scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
goto readin;
xxcxxc
发表于 2023-6-21 10:31:17
1
allgive
发表于 2023-6-24 19:42:30
会不了一点