666
666
看
0.10
1.9
2.?
3.15
4
10
4.
5.
。
1
1
1
最后一题是斐波那契数列吗
1
、
1
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.
看答案捏
打卡
、
1
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++){
1
好好学习天天向上