题目
c++编写一个求两数最大值的函数max(int a,int b),在主函数中输入两个数,调用最大数函
提问时间:2021-02-06
答案
#include
int max(int a,int b)
{
return a > b a :b;
}
void main()
{
int a,b;
scanf("%d,%d",&a,&b);
printf("%d ",max(a,b));
}
int max(int a,int b)
{
return a > b a :b;
}
void main()
{
int a,b;
scanf("%d,%d",&a,&b);
printf("%d ",max(a,b));
}
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
热门考点
- 1能帮我分析一下这个句子吗?The speech the blind girl gave this evening was extremely moving.
- 20.2摩尔每升HCI与0.2摩尔每升的HAc溶液谁的氢离子浓度大啊?
- 3复合函数不是初等函数,
- 4一些因式分解问题
- 51.He found it possible for him to finish the work on time.(改为同义句)
- 6求下列各式x的取值范围.①根号下2x+6;②根号下-2x;③根号下1-2x+根号下4x-1;④根号下x-2分之5x.
- 7四年级作文——民间传说 故事
- 8翻译 Never laugh at failure of others .because noboy enjoys being laughed at.
- 9向斜上方抛出一物体,2s末物体到达最高点时的速度为15m/s,若g取10m/s2,求物体刚抛出时的初速度大小?
- 10怎么对疑问句做出两种不同的否定回答?要两种不同的方式.各种语法的.