<div>定义一个<span style="color: #0000ff">递归函数</span>sum,函数声明如下:</div> <div>int sum(int n); <span style="color: #006600"> //函数声明,返回1<sup>2</sup>+2<sup>2</sup>+3<su…
<div>定义一个<span style="color: #0000ff">递归函数</span>sum,函数声明如下:</div> <div>int sum(int n); <span style="color: #006600"> //函数声明,返回1<sup>2</sup>+2<sup>2</sup>+3<su…
<div>输入一行字符串(字符个数不超过80),统计出该字符串的长度和字符串中出现的空格个数。</div> <div></div> <div> <div>在下面代码的基础上完成,<span style="color: #ff0000">提交时只提交begin所在行和end所在行之间的代码</span>。</div> <div>#include <iostream><…
<div>先输入10个整数到数组中,然后再输入一个要查找的整数,查看要查找的整数是否在刚才的10个整数中,如果在,输出“yes”,如果不在,输出“no”</div> <div></div> <div> <div>在下面代码的基础上完成,<span style="color: #ff0000">提交时只提交begin所在行和end所在行之间的代码</…
<div>小明到商场买衣服,商场正好搞促销活动,不同价格的衣服打的折也不相同。</div> <div>如果衣服原价大于等于300元,则打7折;如果衣服价格小于300元,则打8折。</div> <div>输入小明已挑选好的衣服原价,输出小明要买这件衣服需要花的钱数。<span style="color: #ff0000">要求输出结果保留两位小数。</span></div>
COPYRIGHT © 2025 陌路寒暄. ALL RIGHTS RESERVED. Theme Kratos Made By Seaton Jiang