c语言期末上机考试复习题题答案

c语言期末上机考试复习题题答案

ID:13591852

大小:69.00 KB

页数:10页

时间:2018-07-23

c语言期末上机考试复习题题答案_第1页
c语言期末上机考试复习题题答案_第2页
c语言期末上机考试复习题题答案_第3页
c语言期末上机考试复习题题答案_第4页
c语言期末上机考试复习题题答案_第5页
资源描述:

《c语言期末上机考试复习题题答案》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、C语言题目试编程完成如下功能:1.输入3个实数a,b,c要求按从大到小(或者从小到大)的顺序输出三数#includevoidmain(){floata,b,c,t;printf(“请输入三个数!”);scanf(“%f,%f,%f”,&a,&b,&c);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(“%f%f%f”,a,b,c);}2.输入一个字符,如果是大写字母,则把其变

2、成小写字母;如果是小写字母,则变成大写字母;其它字符不变。#includevoidmain(){charc;printf(“请输入一个字符!”);scanf(“%c”,&c);if((c>=’A’)&&(c<=’Z’))c=c+32;elseif((c>=’a’)&&(c<=’z’))c=c-32;elsec=c;printf(“%c”,c);}3.读入a、b、c的值,计算一元二次方程ax2+bx+c=0的根。#include#include

3、h>voidmain(){floata,b,c,n,m,t;printf(“请输入a,b,c的值!”);scanf(“%f,%f,%f”,&a,&b,&c);n=-b/(2*a);m=b*b-4*a*c;cultureandentertainmentvenues,fitnesscenters,hasagoodecologicalenvironment,jobsecuritymeasures),theserequirementsareverystraightforward,specificsta

4、ndards,alsohasacleardirection,moreeasilybyasuperiorexamination.Povertyassessmentistolookatthepercapitanetincomeofthepoorendof2015standardsis......Yuan,higherstandardsispoverty.SuperioracceptancetoentrustathirdpartyinstitutionfromHouseImplementation.Af

5、teracceptance,alsothroughspotchecks,visits,telephonesurveyslookingactivities.Thismeansthatourachievementshavebeenrecognizedbythepoorforpovertyalleviationthroughacceptance,whichweputforwardhigherrequirementsforpovertyeradication.Therefore,theCountyOffi

6、ceforpovertyalleviationtoevaluationeffortsinthisregard.Toimplementthegridmanagementmodel,integratingpovertyalleviationintogridmanagement,and"makeaheart"activitycombinedpackageofleadingcadresimplementmonitoringsystemsforpovertyalleviation,eachpoorhouse

7、holdsidentifiedapackagecost.Inthisregard,youcandesignaform,indicatingthepoorbasiccauses,currentincome,poverty,supportmeasures,implementationofsupportmeasures,throughhelping'income,annualrevenue.Fromnowon,protectionofficersworkinghouseholds,household-b

8、y-place.Whentheexamination,whichthepoordon'thavetimetogetoutofpoverty,andholdingpeopleaccountable.Third,onenvironmentalprotectioninconstructionofecologicalcivilizationisthefocusononeofthesixbattlethisyear.XianWeiproposedtobuild"greenmountainsa

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。