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

正文內(nèi)容

福建省計算機(jī)二級考試c語言上機(jī)試題庫改錯填空編程-在線瀏覽

2025-05-12 06:39本頁面
  

【正文】 char s1[100],s2[100]。 gets(s1)。 gets(s2)。/**/ for(i=0。\039。 (s1[j]==s2[k])amp。(s1[j]!=39。)。 /**/ if(s2[k]==39。) count++。 getch()。 float score。void main( ){ struct student stu[8]={{Mary,76},{John,85},{Tom,81},{Susa,87},{Wilu,79},{Yili,65},{Sonmu,73},{Lichar,70}}。 float total=0,aver,max。 mrk=0。 /**/ if(stu[i].scoremax) {max=stu[i].score。 } /**/ i++ /**/ } aver=total/8。 getch()。 int i,j。 in1。 jn1。 strcpy(s[i],s[j])。 }}void main(){ int i。/**/ fun(str,COL)。 for(i=0。i++) printf(%s\n,str[i])。},實現(xiàn)將輸入的十進(jìn)制正整數(shù)轉(zhuǎn)換成十六進(jìn)制數(shù),且用字符串存放該十六進(jìn)制數(shù)include include include void main(){ int x,b,i,j。 printf(Input a number(Dec): )。x)。 /**/ while(x0) {b=x%16。A39。 x=x/16。 } printf(\nHex number is: )。j=0。 getch()。 for(k=1。k++) { /**/ for(i=0。i++) /**/ printf( )。i=k。 /**/ for(j=k1。j) /**/ printf(%d,j)。 } getch( )。include include void main(){ float a,b,c,d,area。 scanf(%f,%f,%f,amp。b,amp。 if( a+bc /**/ /**/) {d = (a+b+c)/2。 printf(area is %.2f\n,area)。 getch()。 printf( big median small \n)。big=13。median=33。 if(/**/ /**/==50) { n++。 } } return n。 num = fun()。 getch()。若按每袋裝8個蘋果則多出5個,若按每袋裝7個蘋果,則多出4個,若按每袋裝5個蘋果,則多出2個。 for( n=300。n ) {if( n%8 == 5) if( !((n4)%7) /**/ /**/) printf(n=%d\n, n)。},通過指針變量實現(xiàn)兩個變量值的交換。 sum = *p1+*p2。 *p2 = sum*p1。 printf(please input 2 numbers:\n)。x,amp。 printf(\nOriginal: x=%d y=%d\n,x,y)。x,amp。 printf(\nNow: x=%d y=%d\n,x,y)。},按每行最多5個數(shù)方式輸出100~400之間能同時被7和4整除的所有數(shù)及它們之和。 int sum=0。i=399。amp。 sum+=/**/ /**/。 if(n%5==0) printf(\n)。 getch()。如a=7, b=2, c=8時,7*2*8+7*8*8=560include void b(/**/ /**/){int a,b,c。a10。b10。c10。 }}void main(){ int result=560。 getch()。 amp。 amp。 amp。 amp。 amp。 amp。 for (row=1。row++) { printf(\t)。col=/**/ /**/ 。 else printf(%c,/**/ /**/)。 } getch()。 for(i=0。i++) for(j=0。j++) {if(i%2==0) a[i][j]=/**/ /**/。 } printf(array a(n=%d) is:\n,n)。in。jn。 printf(\n)。 int n。 scanf(%d,amp。 pnt(/**/ /**/,n)。}, 計算以下分?jǐn)?shù)序列的前18項之和include void main(){ int i。 /**/ /**/。i=18。 t=a。 b=/**/ /**/。 getch()。include include void inv(char *str){int i,j,k。 for(i=0。i++,j) {k=*(str+i)。 *(str+j)=/**/ /**/。 printf(\n Original is: %s\n,str)。 printf(\n Now is: %s\n,str)。}四、編程題,完成其中的fun函數(shù):根據(jù)輸入的匯款數(shù)額,求應(yīng)交的匯費。 double y。 printf(Please input a number:\n)。x)。 printf(f(%.2f)=%.2f\n,x,y)。},完成其中的fun函數(shù):對44矩陣從頂行開始各行按從左到右順序查找,找出各行中0元素之后的所有負(fù)數(shù),并按元素出現(xiàn)的先后順序存放到數(shù)組b中,并返回這些負(fù)數(shù)之和。 int arrb[LEN],i,result。iLEN。 clrscr()。 printf(array arrb is:\n)。iLEN。 else printf(%4d,arrb[i])。 getch( )。 double y。 scanf(%f,amp。 y = fun(x)。 getch()。 int n。 printf(Please enter x,n:)。x,amp。 printf(cos(%lf)=%lf\n,x,fun(x,n))。}double fun(double x,int n){ /**/ /**/},完成其中的函數(shù)fun,該函數(shù)的數(shù)學(xué)表達(dá)式是include include double fun(float x){ /**/ /**/}void main( ){ float x。 c
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1