|
发表于 2023-12-25 11:09:46
|
显示全部楼层
100
11
a,b,c都是
3510
if(x>=0)
z=x;
else
z=-x;
if(size>12)
{bill=cost*flag;}
else
{sheds=3}
if(ibex》14)
{
sheds = 3;
}
else
{sheds=2;
help=2*sheds;}
scanf("%d", &score);
while(score>0)
{
count++;
scanf("%d",&score);
}
prtinf("count = %d\n", count);
#include <stdio.h>
int main()
{
double jia=10000.0 , he = 10000.0;
int year,i;
for(i=1;he <= jia;i++)
{
jia+=10000*0.1;
he += he*0.05;
year=i;
}
printf("%dÄêºó£¬ºÚÒ¹µÄͶ×ʳ¬¹ýÁËÀÏÎ۹꣡\n",year);
printf("ÀÏÎÛ¹êµÄͶ×ʶîÊÇ£º%.2f\n",jia);
printf("ºÚÒ¹µÄͶ×ʶîÊÇ£º%.2f\n",he);
return 0;
}
#include <stdio.h>
#include <stdio.h>
#include <math.h>
int main()
{
float num,pii;
int i;
for(i=1,num=1.0;fabs(1/num)>pow(10,-8);i++,num+=2.0)
{
pii+=(pow(-1,i-1))*(1/num);
}
printf("%9.7f,%9.7f",4*pii,1/num);
return 0;
}
int main()
{
int year;
double money=4000000;
for(year=0;money>=0;year++)
{
money=(money-500000)+(money-500000)*0.08;
}
printf("%dÖ®ºó£¬ÀÏÎÛ¹ê°Ü¹âÁËËùÓмҲú£¬±ä³ÉС¼×Óã¡­¡­",year);
return 0;
}
|
|