欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    《C语言程序设计》阅读程序写结果试题汇总2022.pdf

    • 资源ID:87815006       资源大小:794.89KB        全文页数:71页
    • 资源格式: PDF        下载积分:12金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要12金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    《C语言程序设计》阅读程序写结果试题汇总2022.pdf

    阅读程序写结果试题阅读程序写结果试题第四章第四章 选择结构选择结构(共(共 2020 道题)道题)1.1.#include void main()int x,y,t;x=7;y=9;if(xy)t=x;x=y;y=t;printf(%d,%dn,x,y);运行结果:9,72.#include void main()int x=1,a=2,b=3;switch(x)case1:a-;break;case2:b+;break;case3:a+;b+;printf(na=%d,b=%dn,a,b);运行结果:a=1,b=33.#include void main()char ch1=E;if(ch1=A)ch1+;elsech1+=32;printf(ch1=%cn,ch1);运行结果:ch1=F4.#include void main()int x,y,t;x=5;y=3;if(xy)t=x;x=y;y=t;printf(%d,%dn,x,y);运行结果:3,55.#include int main()int a,b,c,m;printf(Enter three integers:);scanf(%d%d%d,&a,&b,&c);if(a=b)m=a;elsem=b;if(cm)m=c;printf(m=%dn,m);return 0;输入:21 22 23运行结果:m=216.#include int main()char ch1=a,ch2=B,ch3=E;if(ch1ch2)if(ch2ch3)ch3+;else-ch3;printf(ch3=%cn,ch3);return 0;运行结果:ch3=D7.#include int main()float x,y;scanf(%f,&x);switch(int)x/10)case 0:y=1.0;printf(y=%fn,y);break;case 1:y=2*x+1;printf(y=%fn,y);break;case 2:y=3*x*x+2;printf(y=%fn,y);break;default:printf(No definition.n);return 0;输入:15.3运行结果:y=31.6000008.#include int main()char ch1=A,ch2=B;switch(ch1)case A:switch(ch2)case B:printf(Good!n);break;case A:printf(Better!n);break;case B:printf(Best!n);break;return 0;运行结果:Good!Best!9#include void main()float score;score=100;if(score60)printf(En);elseswitch(int)score/10)case 10:case 9:printf(An);case 8:printf(Bn);case 7:printf(Cn);break;case 6:printf(Dn);break;default:printf(Errorn);运行结果:ABC10#include void main()int i=0,a=2;if(i=0)printf(“*”);elseprintf(“$”);printf(“*”);运行结果:*11.(王锋)#includevoid main()int m=10,n=0,p=4,q=20;if(m)if(n)q=15-m;elseq=25+m;else if(p)运行结果:q=3512.(王锋)#includevoid main()int a=1,b=0;switch(a)case 1:switch(b)case 0:printf(“*0*”);break;case 2:printf(“*2*”);break;运行结果:*0*2*13.(宋昕)#includeint main()int a=2,b=7,c=5;switch(a0)case 1:switch(b0)case 1:printf();break;case 2:printf(!);break;case 0:switch(c=5)case 1:printf(“*1*”);break;q=q+p;printf(“q=%dn”,q);case 1:printf(*);break;default:printf(#);break;default:printf(&);printf(n);return 0;运行结果:*&14.(宋昕)#includeint main()int a=0,b=1,c=0,d=20;if(a)d=d-10;else if(!b)if(!c)d=15;else d=25;printf(d=%dn,d);return 0;运行结果:d=2015.(宋昕)#includeint main()int a=1;switch(a)case 0:printf(*0*);break;case 1:printf(*1*);break;case 2:printf(*2*);break;return 0;运行结果:*1*16.(宋昕)#include int main()int x,y;scanf(%d,&x);y=x12?x+10:x-12;printf(%dn,y);return 0;输入:12运行结果:017.(宋昕)#include int main()float x,y;char op;double r;scanf(%c%f%f,&op,&x,&y);switch(op)case+:r=x+y;break;case-:r=x-y;break;case*:r=x*y;break;case/:r=x/y;break;printf(%.1f,r);return 0;输入:3.5运行结果:0.618.(王勇超)#include stdio.hvoid main()int a=7;if(a9|a10)a=a/3;elsea=a%3;printf(a=%d,a);运行结果:a=219.(王勇超)#includevoid main()int a=20;switch(a%3)case 0:printf(0);case 1:printf(1);case 2:printf(2);default:printf(3);printf(4);运行结果:23420.(王勇超)#include void main()int a=2,b=5,c=8,t;if(a b)t=a;a=b;b=t;if(b c)t=b;b=c;c=t;if(a b)t=a;a=b;b=t;printf(%d,%dn,a+,-c);运行结果:8,1第五章第五章 循环结构循环结构共共 2020 道题道题1.(于蕾)#include void main()intnumber,digit;number=1234;while(number!=0)digit=number%10;printf(%d,digit);number=number/10;运行结果:43212.(于蕾)#include#define N 5void main()int i;for(i=1;iN;i+)printf(%dn,i*i);运行结果:149163.(于蕾)#includevoid main()int i,s,x;s=0;x=15;for(i=1;i=5;i+)if(x%i=0)s=s+i;printf(i=%d,s=%dn,i,s);运行结果:i=6,s=94.(于蕾)#include void main()int counter=1;while(counter=5)printf(%d n,counter);counter+;运行结果:123455(王伟)#includeint main()int i,sum,m,a;sum=0;m=5;for(i=0;im)sum+=a;printf(sum=%dn,sum);return 0;输入:2 10 8 3运行结果:sum=186.(王伟)#includeint main()int i,j,k;for(i=1;i=4;i+)for(j=1;j5-i;j+)printf();for(k=1;k=i;k+)printf(*);printf(n);return 0;运行结果:*7.(王伟)#include int main()int i,j;i=1;while(i5)for(j=1;j2*i+1;j+)printf(%c,#);printf(n);i+;return 0;运行结果:#8.(王伟)#include int main()int i=10,m=0,n=0;doif(i%2!=0)m=m+i;elsen=n+i;i-;while(i=0);printf(m=%d,n=%dn,m,n);return 0;运行结果:m=25,n=309(王锋)#include voidmain()int sum=0,n;scanf(%d,&n);while(n=5)sum+=n;n+;printf(sum=%d,sum);输入:1运行结果:sum=1510(王锋)#include void main()int i,j;for(i=2;i=0;i-)for(j=1;j=i;j+)printf(*);for(j=0;j=2-i;j+)printf(!);printf(n);运行结果:*!*!11(王锋)#include void main()int a,b;for(a=1,b=1;a20)break;if(b%4=1)b=b+4;continue;b=b-5;printf(a=%dn,a);运行结果:a=612(王锋)#include void main()char k;int i;for(i=1;i3;i+)scanf(%c,&k);switch(k)case 0:printf(anothern);case 1:printf(numbern);输入:01运行结果:anothernumbernumber13.(宋昕)#include int main()int i,s=0;for(i=1;i 10)break;printf(i=%d,s=%dn,i,s);return 0;运行结果:i=3,s=1414.(宋昕)#include void main()char ch;while(ch=getchar()!=n)if(ch=A&ch=a&ch=z)ch=ch-32;printf(%c,ch);输入:ABCdef运行结果:abcDEF15.(宋昕)#include int main()int a,b;for(a=1,b=1;a=9)break;if(b%3=1)b+=3;continue;b-=5;printf(%d,%dn,a,b);return 0;运行结果:4,1016.(宋昕)#includeint main()int i=0,j=0;while(i 10)i+;while(j+10);printf(i=%d,j=%dn,i,j);return 0;运行结果:i=10,j=1117.(王勇超)#include stdio.hvoid main()int i,j,t;for(i=1,j=10;i 4);运行结果:01010119(王勇超)#include stdio.hvoid main()int i=7,j;while(i 2)j=i%2;printf(%d,j);i-;printf(%d,i);运行结果:10101220.(王勇超)#include void main()int i,j,t=0;for(i=3;i0;i-)for(j=0;j4;j+)t+=j;printf(t=%d,t);运行结果:t=18第六章第六章 函数函数共共 4040 道题道题1.(王伟)#include long fun(int x,int n);int main()int x=3,n=3;long p;p=fun(x,n);printf(p=%ldn,p);return 0;long fun(int x,int n)int i;long p=1;for(i=0;in;i+)p*=x;return p;运行结果:p=272.(王伟)#include int isDigit(char ch);int main()char ch;while(ch=getchar()!=n)if(isDigit(ch)putchar(ch);printf(n);return 0;int isDigit(char ch)if(ch=0&ch=9)return 1;elsereturn 0;输入:Abc1d23eF45g运行结果:123453.(王伟)#include void odddivisor(int n);int main()int n;scanf(%d,&n);odddivisor(n);return 0;void odddivisor(int n)int i;for(i=3;i=n/2;i=i+2)if(n%i=0)printf(%5d,i);printf(n);输入:15运行结果:354.(王伟)#include void print();int a=5;int main()int a=1,b=2;a=a+b;print();printf(%d%dn,a,b);return 0;void print()int b=3;printf(%d%dn,a,b);运行结果:5 33 25.(王伟)#include int fun1(int x);void fun2(int x);int main()int x=1;x=fun1(x);printf(%dn,x);return 0;int fun1(int x)x+;fun2(x);return x;void fun2(int x)x+;运行结果:26.(王伟)#include int fun1(int a,int b,int c);int main()int a=11,b=21,c=31;fun1(a,b,c);printf(%d%d%dn,a,b,c);return 0;int fun1(int a,int b,int c)a=a+10;b=b+10;c=c+10;return c;运行结果:11 21 317.(王伟)#includevoid fun(int x);int main()fun(7);printf(n);return 0;void fun(int x)if(x/21)fun(x/2);printf(%5d,x);运行结果:378.(王伟)#include void fun(int a);int main()int i,a5=1,2,3;fun(a);for(i=0;i5;i+)printf(%5d,ai);printf(n);return 0;void fun(int a)int i;for(i=0;i5;i+)ai+=5;运行结果:678559.(于蕾)#include void fun(int k);void main()int w=5;fun(w);printf(n);void fun(int k)if(k0)fun(k-1);printf(%d,k);运行结果:01234510.(于蕾)#includevoid f1(void);int a=1;void main()int a=2;f1();int a=3;printf(a2=%dn,a);printf(a3=%dn,a);void f1(void)printf(a1=%dn,a);运行结果:a1=1a2=3a3=211.(于蕾)#includevoid f(int a,int b,int*c)a=20;b=10;*c=a+b;void main()int a=10,b=20,c=30,d=40;f(a,b,&c);printf(%d,%d,%dn,a,b,c);运行结果:10,20,3012.(于蕾)#includevoid swap(int a,int b);void main()int a=2,b=3;printf(a=%d,b=%dn,a,b);swap(a,b);printf(a=%d,b=%dn,a,b);void swap(int a,int b)int c;c=a;a=b;b=c;运行结果:a=2,b=3a=2,b=313.(于蕾)#include void fun(int a,int b,int c);void main()int x=10,y=20,z=30;fun(x,y,z);printf(%d,%d,%dn,x,y,z);void fun(int a,int b,int c)a=456;b=567;c=678;运行结果:10,20,3014.(于蕾)#include float f(int n)int i;float s=0.0;for(i=1;in;i+)s=s+(float)1.0/i;return s;void main()int i;float a=0.0;for(i=1;i3;i+)a=a+f(i);printf(a=%.4fn,a);运行结果:a=1.000015.(于蕾)#include int f(int a);void main()int a=2,i;for(i=0;i3;i+)printf(%d,f(i);int f(int a)int b=0,c=3;b+;c+;return(a+b+c);运行结果:56716.(于蕾)#includeint fun();void main()int i,x;for(i=0;i=2;i+)x=fun();printf(%dn,x);int fun()int x=3;x+;return x;运行结果:417.(王锋)#include float add(float x,float y);void main()float a,b,c;a=1.0;b=2.0;c=add(a,b);printf(%fn,c);float add(float x,float y)float z;z=x+y;return(z);运行结果:3.00000018.(王锋)#includevoid fun(int x,intcp,intdp)cp=x+;dp=+x;void main(void)int a,c=80,d=-20;a=30;fun(a,c,d);printf(%d,%dn,c,d);运行结果:80,-2019.(王锋)#include int f(int a,int b);void main()int i=2,p;p=f(i,i+1);printf(%dn,p);int f(int a,int b)int c;if(ab)c=1;else if(a=b)c=0;elsec=-1;return(c);运行结果:-120.(王锋)#include int fun(int n)if(n=1)return 1;else return fun(n-1)+3;void main()int i,j=0;for(i=1;i4;i+)j=j+fun(i);printf(j=%dn,j);运行结果:j=1221.(王锋)#include void f(int x,int y)int t;if(xy)t=x;x=y;y=t;void main()int a=4,b=3,c=5;f(a,b);f(a,c);f(b,c);printf(%d,%d,%d,a,b,c);运行结果:4,3,522.(王锋)#includeint age(int n)int c;if(n=1)c=10;elsec=age(n-1)+2;return(c);void main()printf(%d,age(5);运行结果:1823.(王锋)#include void hello_world(void)printf(Hello,world!n);void three_hellos(void)int counter;for(counter=1;counter=3;counter+)hello_world();void main(void)three_hellos();运行结果:Hello,world!Hello,world!Hello,world!24.(王锋)#include int f(int a,int b);void main()int x,i=1,k=3;x=f(i,k);printf(x=%d n,x);int f(int a,int b)int M=0;while(b!=0)M=M+a;b-;return M;运行结果:x=3;25.(宋昕)#includef(int b,int m,int n)int i,s=0;for(i=m;i n;i+)s+=bi;return s;int main()int x,a =1,2,3,4,5,6,7,8,9,*p=a;x=f(p,3,7);printf(x=%dn,x);return 0;运行结果:x=2226.(宋昕)#include void fun(int i,int j)int x=7;printf(i=%d;j=%d;x=%dn,i,j,x);int main()int i=2,x=5,j=7;fun(j,6);printf(i=%d;j=%d;x=%dn,i,j,x);return 0;运行结果:i=7;j=6;x=7i=2;j=7;x=527.(宋昕)#include void f(int a)int i=0;while(ai=10)printf(%d,ai);i+;int main()int a=1,7,17,9,11,34;f(a+1);运行结果:728.(宋昕)#include void add(int x,int y,int z)z=x+y;x=x*x;y=y*y;printf(2)x=%d y=%d z=%dn,x,y,z);int main()int x=2,y=3,z=0;printf(1)x=%d y=%d z=%dn,x,y,z);add(x,y,z);printf(3)x=%d y=%d z=%dn,x,y,z);return 0;运行结果:(1)x=2 y=3 z=0(2)x=4 y=9 z=5(3)x=2 y=3 z=029.(宋昕)#include int x1=30,x2=40;void sub(int x,int y)x1=x;x=y;y=x1;int main()int x3=10,x4=20;sub(x3,x4);sub(x2,x1);printf(%d,%d,%d,%dn,x3,x4,x1,x2);return 0;运行结果:10,20,40,4030.(宋昕)#includeint x;void cube()x=x*x*x;int main()x=5;cube();printf(%dn,x);return 0;运行结果:12531.(宋昕)#include invert(int*s,int i,int j)int t;if(i j)invert(s,i+1,j-1);t=*(s+i);*(s+i)=*(s+j);*(s+j)=t;void main()int a6=10,6,23,-90,0,3,i;invert(a,0,5);for(i=0;i 6;i+)printf(%d,ai);printf(n);运行结果:3,0,-90,23,6,1032.(宋昕)int func(int a3)int i,j,sum=0;for(i=0;i3;i+)for(j=0;j3;j+)aij=i+j;if(i=j)sum=sum+aij;return sum;int main()int a33=1,3,5,7,9,11,13,15,17;int sum;sum=func(a);printf(sum=%d,sum);return 0;运行结果:sum=633.(王勇超)#include int i=10;void fun();void main()int i;for(i=2;i0;i-)fun();void fun()i*=2;printf(i=%dn,i);运行结果:i=20i=4034(王勇超)#include int fun(int n)if(n=1)return 1;elsereturn fun(n-1)*n;void main()int i,j=0;for(i=1;i=3;i+)j+=fun(i);printf(j=%dn,j);运行结果:j=935.(王勇超)#include int funa(int a,int b)int t;if(a b)t=a/b;elset=a%22;return t;void main()int a=33,b=22,c;c=funa(a,b);printf(c=%dn,c);运行结果:c=136.(王勇超)#include void fun(int i);void main()int i;for(i=2;i0;i-)fun(i);void fun(int i)i*=2;printf(+%d+,i);运行结果:+4+2+37.(王勇超)#include void fun(int n);void main()int x=879;fun(x);void fun(int n)int a,b,c,t;a=n%10;b=(n/10)%10;c=(n/100)%10;if(a b)t=a;a=b;b=t;if(b c)t=b;b=c;c=t;if(a b)t=a;a=b;b=t;printf(%d,b);运行结果:838.(王勇超)#include int funa(int a,int b)int t;if(a b)t=a;a=b;b=t;return t;void main()int a=33,b=22,c;c=funa(a,b);printf(c=%dn,c);运行结果:c=3339.(王勇超)#include int swap(int x,int y)int z;z=x%10;x=y%10;y=z;z=x;return z;void main()int a=38,b=29,c;c=swap(a,b);printf(%d%dn,a,c);运行结果:38940.(王勇超)#include void fun(int n)if(n=1)printf(*n);elseprintf(-);fun(n-1);void main()int i,j=0;for(i=1;i4;i+)fun(i);printf(XiaoXin!);运行结果:*-*-*XiaoXin!第七章第七章 数组数组共共 4040 道题道题1.(王锋)#include void main()int a23=3,2,7,4,8,6;inti,j,m=0;for(i=1;i=1;i+)for(j=0;j=i;j+)m=m+aij;printf(m=%d,m);运行结果:m=122.(王锋)#include void main(void)int array10=1,2,4,5,6,0,0,0,0,0,i;printf(n);for(i=0;i=2;i-)arrayi=arrayi-1;array2=3;for(i=0;i10;i+)printf(%3d,arrayi);printf(n);运行结果:124560000012345600003.(王锋)#include void main(void)运行结果:CDG4.(王锋)#include#include void main()char a30=Hello;char a=ABCDEFGH,b=abCDefGh;char*p1,*p2;int k;p1=a;p2=b;for(k=0;k=7;k+)if(*(p1+k)=*(p2+k)printf(%c,*(p1+k);printf(n);char b10=Students;char c10=Teachers;strcat(a,c);printf(%s,%s.n,a,b);运行结果:Hello Teachers,Students.5(王锋)#include void inv(int x,int n);void main()int i,a10=3,7,9,11,0,6,7,5,4,2;inv(a,10);printf(The array has been reverted.n);for(i=0;i10;i+)printf(%d,ai);printf(n);void inv(int x,int n)int t,i,j,m=(n-1)/2;for(i=0;i=m;i+)j=n-1-i;t=xi;xi=xj;xj=t;运行结果:The array has been reverted.2,4,5,7,6,0,11,9,7,3,6.(王锋)#includevoid main()float a33=1,2,3,4,5,6,7,8,9,sum=0;int i;printf(please input rectangle element:n);for(i=0;i3;i+)sum=sum+aii;printf(duijiaoxian he is%6.2f,sum);运行结果:please input rectangle element:duijiaoxian he is15.007.(宋昕)#include int main()int i=1,n=3,j,k=3;int a5=1,4,5;while(iai)i+;for(j=n-1;j=i;j-)aj+1=aj;ai=k;for(i=0;i=n;i+)printf(“%2d”,ai);return 0;运行结果:1 3 4 58.(王锋)#includevoid main()int a10=0,1,2,3,4,5,6,7,8,9,b10,i,sum=0;for(i=1;i10;i+)bi=ai-1+ai;sum=sum+bi;for(i=1;i10;i+)if(i%3=0)sum=sum+bi;printf(sum=%3d,sum);运行结果:sum=1149.(王勇超)#include void main()int a5=2,6,1,3,4,n=5,i,j,t;for(i=0,j=1;jn;j+)if(aiaj)aj=ai;i+;for(i=0;in;i+)printf(%d,ai);运行结果:2212110.(王勇超)#include void funa(int x,int n);void main()int i,a5=3,7,9,11,0;funa(a,5);for(i=0;i5;i+)printf(“%d,”,ai)printf(“n”)void funa(int x,int n)int t,i,j,m=(n-1)/2;for(i=0;i=m;i+)j=n-1-i;t=xi;xi=xj;xj=t;运行结果:0,11,9,7,3,11.(王勇超)#include void main()int a5=24,15,33,64,45,n=5,i,j,t;for(i=0;i0;i-)printf(%d,ai-1);运行结果:5,4,3,5,4,12.(王勇超)#include void main()int a5,i,j,t;for(i=4;i=0;i-)scanf(%d,&ai);for(i=0;i5;i+)ai=ai+10;for(i=0;i5;i+)printf(%d,ai);输入:42 31 24 15 16运行结果:26,25,34,41,5213.(王勇超)#includemain()char a5=Zhong,Gong,ren;printf(%sn%sn,a0,a1);运行结果:ZhongGongGong14.(王勇超)#include void main()int a33=0,1,2,3,4,5,6,7,8,i,j,t;for(i=0;i3;i+)for(j=0;j3;j+)aij+=ai0;for(i=0;i3;i+)printf(%d,aii);运行结果:0,10,2015.(王勇超)#include void main()int a33=1,2,3,4,5,6,7,8,9,i,j;for(i=0;i3;i+)for(j=0;j0)i-;printf(%d,aii);运行结果:18,11,416.(王勇超)#includevoid main()int i,j;char a10=ABCDEFGHIJ;for(i=0;i10;i+)ai=ai+3;printf(%cn,a6);运行结果:J17.(王伟)#includeint main()int i,a10=0,1,2,3,4,5,6,7;for(i=1;i9;i+)ai=ai-1+ai+1;printf(%d%dn,a5,a8);return 0;运行结果:202718.(王伟)#includeint main()int i,a=1,2,3,4,5,6,7,8,9,10;for(i=0;i=0;i-)if(ai%3=0)printf(%dn,ai);return 0;运行结果:966319.(王伟)#includeint main()int num=13,len=0,i=0,a30;doalen=num%2;num=num/2;len+;while(num);for(i=0;ilen;i+)printf(%d,alen-i-1);printf(n);return 0;运行结果:110120.(王伟)#include int main()int a5=6,9,12,16;int x,i=3;scanf(%d,&x);while(i=0&xai)ai+1=ai;i-;ai+1=x;for(i=0;i5;i+)printf(%5d,ai);printf(n);return 0;输入:10运行结果:6910121621.(王伟)#includeint main()int a33=2,3,4,5,6,7,8;int i=0,j=0,m;m=a00;for(i=0;i3;i+)for(j=0;j3;j+)if(aijm)m=aij;printf(m=%dn,m);return 0;运行结果:m=022.(王伟)#include#include int main()int i;char str20=abcdef;strcpy(str,opqrst);str5=0;for(i=0;istrlen(str)-1;i+)putchar(stri);printf(n);return 0;运行结果:opqr23.(王伟)#include#include int main()char a10=AB,b10=LMNP;int i=0;while(bi)ai=bi;i+;ai=0;puts(b);return 0;运行结果:LMNP24.(王伟)#include#include int main()int i;char str130=abc,str235=defg,hi0j,klm;for(i=1;i3;i+)strcat(str1,str2i);puts(str1);return 0;运行结果:abchiklm25.(宋昕)#includeint main()int i;char a=Time,b=Tom;for(i=0;ai!=0&bi!=0;i+)if(ai=bi)if(ai=a&ai=z)printf(%c,ai-32);elseprintf(%c,ai+32);else printf(*);return 0;运行结果:t*M26.(宋昕)#include intmain()char a410=1

    注意事项

    本文(《C语言程序设计》阅读程序写结果试题汇总2022.pdf)为本站会员(无***)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开