freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語(yǔ)言程序設(shè)計(jì)課后習(xí)題答案(第四版)譚浩強(qiáng)(1)-在線瀏覽

2024-08-06 22:15本頁(yè)面
  

【正文】 intf(請(qǐng)輸入學(xué)生成績(jī):)。score)。 scanf(%f,amp。 } switch((int)(score/10)) {case 10: case 9: grade=39。break。B39。 case 7: grade=39。break。D39。 case 5: case 4: case 3: case 2: case 1: case 0: grade=39。 } printf(成績(jī)是 %,相應(yīng)的等級(jí)是%c\n ,score,grade)。}49include include int main(){ int num,indiv,ten,hundred,thousand,ten_thousand,place。 scanf(%d,amp。 if (num9999) place=5。 else if (num99) place=3。 else place=1。 printf(每位數(shù)字為:)。 thousand=(int)(numten_thousand*10000)/1000。 ten=(int)(numten_thousand*10000thousand*1000hundred*100)/10。 switch(place) {case 5:printf(%d,%d,%d,%d,%d,ten_thousand,thousand,hundred,ten,indiv)。 printf(%d%d%d%d%d\n,indiv,ten,hundred,thousand,ten_thousand)。 case 4:printf(%d,%d,%d,%d,thousand,hundred,ten,indiv)。 printf(%d%d%d%d\n,indiv,ten,hundred,thousand)。 case 3:printf(%d,%d,%d,hundred,ten,indiv)。 printf(%d%d%d\n,indiv,ten,hundred)。 case 2:printf(%d,%d,ten,indiv)。 printf(%d%d\n,indiv,ten)。 case 1:printf(%d,indiv)。 printf(%d\n,indiv)。 } return 0。 double bonus,bon1,bon2,bon4,bon6,bon10。 bon2=bon1+100000*。 bon6=bon4+100000*。 printf(請(qǐng)輸入利潤(rùn)i:)。i)。 else if (i=200000) bonus=bon1+(i100000)*。 else if (i=600000) bonus=bon4+(i400000)*。 else bonus=bon10+(i1000000)*。 return 0。 double bonus,bon1,bon2,bon4,bon6,bon10。 bon1=100000*。 bon4=bon2+200000*。 bon10=bon6+400000*。 scanf(%d,amp。 branch=i/100000。 switch(branch) { case 0:bonus=i*。 case 1:bonus=bon1+(i100000)*。 case 2: case 3: bonus=bon2+(i200000)*。 case 4: case 5: bonus=bon4+(i400000)*。 case 6: case 7: case 8: case 9: bonus=bon6+(i600000)*。 case 10: bonus=bon10+(i1000000)*。 return 0。 printf(請(qǐng)輸入四個(gè)數(shù):)。a,amp。c,amp。 printf(a=%d,b=%d,c=%d,d=%d\n,a,b,c,d)。a=b。} if (ac) { t=a。c=t。a=d。} if (bc) { t=b。c=t。b=d。} if (cd) { t=c。d=t。 printf(%d %d %d %d \n ,a,b,c,d)。 }412include int main() { int h=10。 printf(請(qǐng)輸入一個(gè)點(diǎn)(x,y):)。x,amp。 d1=(xx4)*(xx4)+(yy4)*(yy4)。 d3=(xx2)*(xx2)+(yy2)*(yy2)。 if (d11 amp。 d21 amp。 d31 amp。 d41) h=0。 return 0。 // sign用來(lái)表示數(shù)值的符號(hào),count用來(lái)統(tǒng)計(jì)循環(huán)次數(shù) double pi=,n=,term=。 // 把當(dāng)前項(xiàng)term累加到pi中 n=n+2。 // sign代表符號(hào),下一項(xiàng)的符號(hào)與上一項(xiàng)符號(hào)相反 term=sign/n。 // count累加1 } pi=pi*4。 // 輸出π的近似值 printf(count=%d\n,count)。}53include int main() { int p,r,n,m,temp。 scanf(%d,%d,amp。m)。 n=m。 } p=n*m。 n=m。 } printf(它們的最大公約數(shù)為:%d\n,n)。 return 0。 int letters=0,space=0,digit=0,other=0。 while((c=getchar())!=39。) { if (c=39。 amp。 c=39。 || c=39。 amp。 c=39。) letters++。 39。 else if (c=39。 amp。 c=39。) digit++。 } printf(字母數(shù):%d\n空格數(shù):%d\n數(shù)字?jǐn)?shù):%d\n其它字符數(shù):%d\n,letters,space,digit,other)。 }55include int main() { int a,n,i=1,sn=0,tn=0。 scanf(%d,%d,amp。n)。 /*賦值后的tn為i個(gè) a組成數(shù)的值*/ sn=sn+tn。 ++i。 return 0。 int n。n=20。 s=s+t。 return 0。 double k,s1=0,s2=0,s3=0。k=n1。} for (k=1。k++) /*計(jì)算1到50各數(shù)的平方和*/ {s2=s2+k*k。k=n3。} printf(sum=%\n,s1+s2+s3)。 }58include int main() { int i,j,k,n。 for (n=100。n++) { i=n/100。 k=n%10。 } printf(\n)。 }591define M 1000 /*定義尋找范圍*/include int main() { int k1,k2,k3,k4,k5,k6,k7,k8,k9,k10。 for (a=2。a++) /* a是21000之間的整數(shù),檢查它是否完數(shù) */ {n=0。 /* s用來(lái)存放尚未求出的因子之和,開(kāi)始時(shí)等于a */ for (i=1。i++) /* 檢查i是否a的因子 */ if (a%i==0) /* 如果i是a的因子 */ {n++。 /* s減去已找到的因子,s的新值是尚未求出的因子之和 */ switch(n) /* 將找到的因子賦給k1...k9,或k10 */ {case 1: k1=i。 /* 找出的笫1個(gè)因子賦給k1 */ case 2: k2=i。 /* 找出的笫2個(gè)因子賦給k2 */ case 3: k3=i。 /* 找出的笫3個(gè)因子賦給k3 */ case 4: k4=i。 /* 找出的笫4個(gè)因子賦給k4 */ case 5: k5=i。 /* 找出的笫5個(gè)因子賦給k5 */ case 6: k6=i。 /* 找出的笫6個(gè)因子賦給k6 */ case 7: k7=i。 /* 找出的笫7個(gè)因子賦給k7 */ case 8: k8=i。 /* 找出的笫8個(gè)因子賦給k8 */ case 9: k9=i。 /*找出的笫9個(gè)因子賦給k9 */ case 10: k10=i。 /* 找出的笫10個(gè)因子賦給k10 */ } } if (s==0) { printf(%d ,Its factors are ,a)。 /* n1表示a至少有2個(gè)因子 */ if (n2) printf(,%d,k3)。 /* n3表示至少有4個(gè)因子,故應(yīng)再輸出一個(gè)因子 */ if (n4) printf(,%d,k5)。 if (n6) printf(,%d,k7)。 if (n8) printf(,%d,k9)。 printf(\n)。 }592include int main() {int m,s,i。m1000。 for (i=1。i++) if ((m%i)==0) s=s+i。 for (i=1。i++) if (m%i==0) printf(%d ,i)。 } } return 0。 double a=2,b=1,s=0,t。i=n。 t=a, a=a+b, b=t。 return 0。 int n。n=10。 /*第n次落地時(shí)共經(jīng)過(guò)的米數(shù)*/ hn=hn/2。 printf(第10次反彈%f米\n,hn)。 }512include int main() { int day,x1,x2。 x2=1。 /*第1天的桃子數(shù)是第2天桃子數(shù)加1后的2倍.*/ x2=x1。 } printf(total=%d\n,x1)。 }513include include int main() { float a,x0,x1。 scanf(%f,amp。 x0=a/2。 do {x0=x1。 }while(fabs(x0x1)=1e5)。 return 0。 x1=。 f=((2*x04)*x0+3)*x06。 x1=x0f/f1。 printf(The root of equation is %\n,x1)。 }515include include int main() {float x0,x1,x2,fx0,fx1,fx2。 x2:)。x1,amp。 fx1=x1*((2*x14)*x1+3)6。 }while(fx1*fx20)。 fx0=x0*((2*x04)*x0+3)6。 fx2=fx0。 fx1=fx0。 printf(x=%\n,x0)。 }516include int main() {int i,j,k。i=3。j=2i。 for (k=0。k++) printf(*)。 } for (i=0。i++) {for (j=0。j++) printf( )。k=42*i。 printf(\n)。 }517include int main() { char i,j,k。j是b的對(duì)手。x39。z39。x39。z39。x39。z39。amp。x39。amp。x39。amp。z39。 return 0。 for (i=1。i++) a[i]=i。 for (i=
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1