非常风气网www.verywind.cn
首页
编程实现从键盘输入5个国名
1、
从键盘
任意
输入
10个正整数,
编程实现
:
答:
include <stdio.h>int compare(int a, int b){ if ((a%2) != (b%2)) return (a%2) ? -1 : 1; else return (a%2) ? b-a : a-b;};void sort(int * array, int count){ int i; for(i=0; i<count-1; i++) if (compare(array[i], array[i...
编程实现从键盘输入
年份和月份并自动输出
答:
编程实现从键盘输入
年份和月份,输出该月的天数。输入输出格式如下:输入:2000,2 输出:2000年是闰年,2月共有29天 输入:1999,2 输出:1999年不是闰年,2月共有28天 输入:1996,3 输出:1996年3月共有31天 编程实现从键盘输入年份和月份,输出该月的天数。输入输出格式如下:输入:2000,2 输出...
编程实现
,
从键盘输入
10个正整数,计算最大值,最小值,平均值
答:
continue;} average=sum/8;cout<<"the max is number " << max_num+1 << ":"<< max <<endl;cout<<"the min is number " << min_num+1 << ":"<< min <<endl;cout<<"the sum is "<< sum << endl;cout<<"the average is "<< average << endl;} vc6.0调试
通过
的 ...
棣栭〉
<涓婁竴椤
13
14
15
16
17
18
19
20
21
76
你可能感兴趣的内容
本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
©
非常风气网