Problem A: 调用函数,求三个数中最大数
2024-08-31 16:54:58
#include<stdio.h>
int max(int a,int b,int c);
int main()
{
int a,b,c;
while(scanf("%d %d %d",&a,&b,&c)!=EOF){
printf("%d\n",max(a,b,c));}
return ;
} int max(int a,int b,int c)
{
int m;
m=a;
if(b>m)
m=b;
if(c>m)
m=c;
return m;
}
最新文章
- 【整理】Word OpenXML常用标签
- iOS,手势识别简单使用
- DataTable
- 【Unity3D基础教程】给初学者看的Unity教程(一):GameObject,Compoent,Time,Input,Physics
- MemcacheQ 安装与使用
- android Java BASE64编码和解码二:图片的编码和解码
- How to override create,write,unlink method in Odoo v8
- 强连通+二分匹配(hdu4685 Prince and Princess)
- D3.js 布局
- sql2008+vs2008安装心得以及详细教程分享
- win10亮度不能调节的解决方法
- 单元测试系列:Mock工具Jmockit使用介绍
- 深入学习 FutureTask
- POJ-1038 Bugs Integrated, Inc. (状压+滚动数组+深搜 的动态规划)
- Linux中在防火墙中开启80端口的例子
- Python中的replace方法
- C#实现两个时间相减的方法
- TA-Lib中文文档(二):talib安装
- 监控memcache服务
- ABAP CDS - SELECT, WHERE