|
发表于 2019-10-20 00:36:20
|
显示全部楼层
0.10
1.10
2.a.b.c
3.14,5,9
4.
5.- if (size > 12)
- {
- cost = cost * 1.05;
- flag = 2;
- bill = cost * flag;
- }
- else
- bill = cost * flag;
复制代码
- if (ibex > 14)
- {
- sheds = 3;
- }
- else
- sheds = 2;
- b: help = 2 * sheds;
复制代码- scanf("%d", &score);
- if (score < 0)
- {
- printf("count = %d\n", count);
- }
- else
- {
- count++;continue;
复制代码
动手- #include <stdio.h>
- int main()
- {
- int a;
- double b, c;
- for(a = 0, b=10000, c=10000; b>=c;a++)
- {
- b += 10000*0.1;
- c += c*0.05;
- };
- printf("%d",a);
- return 0;
- }
复制代码- #include <stdio.h>
- int main()
- {
- int a;
- double b;
- for(a = 1, b=350; b>0;a++)
- {
- b += b*0.08;
- b -= 50;
- };
- printf("%d",a);
- return 0;
- }
复制代码
- #include <stdio.h>
- int main()
- {
- double a = 1, b=1;
- int i = 1;
- do
- {
- a += 2;
- if(i%2)
- b += 1/(-a);
- else
- b += 1/a;
- i++;
- }while(fabs(1/a)>=pow(10,-8));
- printf("%.8lf",4*b);
- return 0;
- }[code]#include <stdio.h>
- int main()
- {
- int a=1, b=0, c=0;
- int i;
- for(i=2;i<=24;i++)
- {
- c=b;
- b+=a;
- a=c;
- }
- printf("%d",a+b);
- return 0;
- }
复制代码 [/code] |
|