算术运算符练习题2阅读程序写结果.docx

算术运算符练习题2阅读程序写结果.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
题 题4: #in cludecstdio using n amespace std; int mai n() { int a,b,c; sca nf(%d%d, a, b); c=2*a+3*b; prin tf(c=%d,c); return 0; } 输入:2 3 输出: 题5: #in cludeiostream using n amespace std; int mai n() { int m,n; m=7775; n=m%100; cout n; return 0; } 输出: 题6: #in cludecstdio using n amespace std; int mai n() { int m, n; m=567; n=m/10%10; prin tf(%d, n); return 0; } 输出: 算术运算符练习题2 阅读程序写结果 题1: #in cludeiostream using n amespace std; int mai n() { int兀 cin x; cout10x=10*xe ndl; return 0; } 输入:5 输出: 题2: #in cludecstdio using n amespace std; int mai n() { int兀 scan f(%d, x); prin tf(8x=%d\n,8*x); return 0; } 输入:4 输出: 题3: #in cludeiostream using n amespace std; int mai n() { int兀 cin x; y=13*x; couty=ye ndl; return 0; } 输入:5 输出: 题 题7: 题9: #in cludecstdio using n amespace std; int mai n() { int a,b,c; sca nf(%d%d%d,a,b,c); prin tf((a+b)*c=%d,(a+b)*c); return 0; } 输入:5 5 3 输出: 题8: #in cludeiostream using n amespace std; int mai n() { int a,b,m, n; cin a?b; m=a/b; n=a%b; coutm=m; n=n; return 0; } 输入:14 6 #in cludeiostream using n amespace std; int mai n() { int x=5,y=6; int z1=x+(++y); int z2=z1+(y--); coutye ndl; coutz1=z1; z2=z2; return 0; } 输出: 题10: #in cludecstdio using n amespace std; int mai n() { int a,b; scan f(%d%d,a,b); b%=a; prin tf(b=%d,b); return 0; } 输入:13 5 输出: 输出:

文档评论(0)

youbika + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档