489994396
发表于 2024-10-5 19:27:04
朕想知道
kiara_03
发表于 2024-10-8 17:10:55
h
欧派aaa
发表于 2024-10-9 11:25:54
{:5_90:}
KKKIII
发表于 2024-10-11 11:08:59
、
cashing
发表于 2024-10-12 19:31:27
1
IIIIIIIIIIIIIIa
发表于 2024-10-14 15:22:43
#include <stdio.h>
#include <math.h>
int main()
{
/*
a = (b = 3, 4, c = b++ + 5, ++c + ++b);
b = 3;
c = 3 + 5 = 8; b = 4;
++c = 9; ++b = 5; ++c + ++b = 14;
a = 14;
*/
/*
A.
if (size > 12)
{
cost *= 1.05;
flag = 2;
}
else
{
bill = cost * flag;
}
B.
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
}
help = 2 * sheds;
while (scanf_s("%d", &score) && score > 0)
{
count++;
}
printf("count = %d\n", count);
*/
/*
float heiye = 10000;
float xiaojiayu = 10000;
float heiye_rate = 0.05;
float xiaojiayu_rate = 0.10;
int count = 0;
float xiaojiayu_principal = xiaojiayu;
while (heiye <= xiaojiayu)
{
xiaojiayu = xiaojiayu + xiaojiayu_principal * xiaojiayu_rate;
heiye = heiye * (1 + heiye_rate);
count++;
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n",count);
printf("小甲鱼的投资额是:%.2f\n", xiaojiayu);
printf("黑夜的投资额是:%.2f\n", heiye);
*/
/*
float principal = 4000000;
float withdrawl = 500000;
int years = 0;
float i_rate = 0.08;
while (principal > 0)
{
principal -= withdrawl;
principal += principal * i_rate;
years++;
}
printf("%d年后,小甲鱼败光了所有的家产\n", years);
*/
/*
int denominator = 1;
int sign = 1;
double pi = 0.0;
double term = 1.0;
while (fabs(term) > pow(10, -8))
{
pi += sign * term;
denominator += 2;
term = 1.0 / denominator;
sign = -sign;
}
pi *= 4;
printf("结果为%.7f\n", pi);
*/
return 0;
}
FWJ-Einstein
发表于 2024-10-14 17:26:37
1
颜亦@x
发表于 2024-10-17 19:58:33
0
关二哥
发表于 2024-10-17 22:32:28
1
ice-xyz
发表于 2024-10-19 10:04:08
666
stone-echo
发表于 2024-10-20 08:42:50
dana
张三ccccccc
发表于 2024-10-21 10:24:10
1111111111111
xxtb1
发表于 2024-10-21 19:10:43
答案
welove
发表于 2024-10-24 12:57:54
{:10_269:}
盒子jet
发表于 2024-10-24 19:09:27
1
GDchan
发表于 2024-10-26 15:57:31
{:5_104:}
sheepsheepsheep
发表于 2024-10-27 20:30:20
0.10
1.10
2.c.b.a
3.a=15,b=4,c=9
4.1?z=abs(x):0
5.A
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
{
bill = cost * flag;
}
B.
if (ibex > 14)
{
sheds = 3 ;
}
else
{
shed = 2;
help = 2 * sheds;
}
C.
readin: scanf("%d, &score");
if (score < 0)
{
printf("count = %d\n", count);
}
else
{
count++;
readin;
}
0.
#include <stdio.h>
int main()
{
int money = 10000, year;
float money_xjy = 10000, money_hy = 10000;
for(year = 0; money_hy <= money_xjy; year++)
{
money_xjy += money * 0.1;
money_hy += money_hy * 0.05;
}
printf("%d年后,黑夜的投资额超过小甲鱼!", year);
printf("小甲鱼的投资额时:%.2f", money_xjy);
printf("黑夜的投资额时:%.2f", money_hy);
return 0;
}
1.
#include <stdio.h>
int main()
{
int money = 400, year = 0, money_left = money, money_take = 50;
while (money_left >= 0)
{
money_left += money_left * 0.08 - money_take;
year++;
}
printf("%d年后, 小甲鱼败光了所有的家产,再次回到一贫如洗...", year-2);
return 0;
}
2.
#include <stdio.h>
#include <math.h>
int main() {
int n = 1, symbol = 1;
double Pi = 0;
const float threshold = 0.00000001;
double term;
while (1) {
term = symbol * 4 * (1.0 / (2*n-1));
Pi += term;
if (fabs(term) < threshold)
{
break;
}
symbol = -1 * symbol;
n++;
}
printf("Pi的值是%.7f", Pi);
return 0;
}
3.
#include <stdio.h>
int main() {
int months = 24;
long long fib;
fib = 0;
fib = 1;
fib = 1;
for (int i = 3; i <= months; i++)
{
fib = fib + fib;
}
printf("两年后兔子的对数是:%lld\n", fib);
return 0;
}
yhan0204
发表于 2024-10-30 20:28:49
{:10_256:}
IsscaYummy
发表于 2024-11-1 22:07:01
0. 10
1. 0
2. a
3. a= 14 b=5 c= 9
4. z = abs(x)
5.
枯草
发表于 2024-11-2 16:22:36
+1