输入10个数字,输出最大值
来源:互联网 发布:外教网络一对一收费 编辑:程序博客网 时间:2024/05/16 15:40
#include <iostream>using namespace std;int max(int m,int n);int main(){ int num; int maximum; cout<<"Enter 10 integer numbers:"<<endl; cin>>num; for(int i=1;i<10;i++) { cin>>num; maximum = max(maximum,num); } cout<<"The max number is: "<<maximum<<endl; return 0;}int max(int m,int n){ return m>n?m:n;}
- 输入10个数字,输出最大值
- 输入10个数字,然后逆序输出
- 输入10个数字,然后逆序输出
- 输入3个整数,输出其最大值
- 输入10个数,输出最大值。
- 不断的输入数字,直到输入end,输出最大值
- 控制台不断输入数字,输入end的时候输出最大值
- 输入10个数字将其按从小到大排序输出
- 输入10个数字并且排序后输出(汇编)
- (c++)输入10个数字,然后逆序输出。
- [YTU]_1046 ( 输入10个数字,然后逆序输出)
- 输入4个数字从小到大输出(c++)
- 输入10个数到数组,输出最大值
- 输入4个整数,输出其中的最大值和最小值
- 45_输入4个整数,输出其中的最大值
- 输入3个整数,输出其中的最大值
- B.2输入3个整数,输出其中的最大值。
- 3.7.3 给定3个数字,求出这3个数字中的最大值,并将最大值输出。
- 接口原理与应用
- 单链表的封装
- CodeForces 113B Petr#(KMP + 字符串hash)
- 是什么浪费了我的时间
- 1586 计算组合数
- 输入10个数字,输出最大值
- An internal error occurred during: "Importing Maven projects". Unsupported IClasspathEntry kind=4
- win7无线网密码破译以及密码保护
- CentOS 6.0 安装Atheros ar8151网卡驱动
- 把Eclipse打造成Emacs——写给Eclipse下挣扎的Emacser
- C++改写成C需要注意的几点
- hdu3911 Black And White
- 使用 Java 对 Linux 下文件编码格式进行批量转换
- Iterator和for循环的使用