1、break;-,a-b);*,a*b);/,a/b);default :Unknown operatorn);Q348.math.hint a;double b, rate;Please enter year,capital:%d,%lf, &a, &switch (a)case 1:rate = 0.0225;rate = %f, deposit = %fn, rate, (double)b * (double)pow(1 + rate, a);case 2:rate = 0.0243;case 3:rate = 0.0270;case 5:rate = 0.0288; case 8:rat
2、e = 0.0300;Error rate!nreturn 0;Q219.char a;Press a key and then press Enter:%ca);if (a = a & a AZ)It is an English character!elseif (a = 0 &= 9)It is a digit character!if (a = )It is a space character!It is other character!Q221.main()int year, month;Input year,month:%d, %dyear, &month);switch (mont
3、h)case 7:case 8:case 10:case 12:31 daysnif (year % 4 = 0 & year % 100 != 0) | (year % 400 = 0)29 daysn /* 闰年的 2 月有 29 天 */28 daysn /* 平年的 2 月有 28 天 */case 4:case 6:case 9:case 11:30 daysndefault:Input error!Q515.int a,b;Input a, b:%d,%d if(a=b)max = %dn,a);,b);Q1300.long a;请输入利润:%ldif(a100000&a=2000
4、00) printf(,100000*0.1+(a-100000)*0.075);200000&=400000) printf( 奖 金是%10.2f,100000*0.1+100000*0.075+(a-200000)*0.05);400000&=600000) printf(,100000*0.1+100000*0.075+200000*0.05+(a-400000)*0.03);600000&=1000000) printf(,100000*0.1+100000*0.075+200000*0.05+200000*0.03+(a-600000)*0.015);else printf(是 %
5、10.2f,100000*0.1+100000*0.075+200000*0.05+200000*0.03+400000*0.015+(a-1000000)*0.01);Q586.#include=3&month0) printf(y=%fn,exp(-a);if(xAn=80&90) printf(Bn=70&80) printf(Cn=60&70) printf(Dn=0&60) printf(Enscore=%d is error! Q1903.float x;Please input x:%fy = %.2fn,3*x-1);if(x=10) printf(,exp(x);Q1246.float a, b, c;int flag = 1;%f,%f,%fb , &c
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1