C语言实验——求两个整数之中较大者
来源:互联网 发布:网络代理兼职加盟 编辑:程序博客网 时间:2024/06/11 12:28
C语言实验——求两个整数之中较大者
Time Limit: 1000MS Memory Limit: 65536KB
Submit Statistic
Problem Description
输入两个整数,请编程求其中的较大者。
Input
在一行中输入用空格隔开的两个整数,例如5 9。
Output
输出两个整数之中较大者,输出形式举例:max=9。
Example Input
5 9
Example Output
max=9
#include<stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); if(a>b) { c=a; } else { c=b; } printf("max=%d\n",c); return 0;}
阅读全文
0 0
- 1153 C语言实验——求两个整数之中较大者
- C语言实验——求两个整数之中较大者
- C语言实验——求两个整数之中较大者 (sdut oj)
- oj1976: C语言实验——求两个整数之中较大者
- sdut-1153 C语言实验——求两个整数之中较大者
- C语言实验——求两个整数之中较大者
- c语言:2种方法;求两个整数之中的较大者
- C语言-求两个整数中的较大者
- 【c语言】求两个整数中的较大者
- C语言实验——求两个整数之和
- oj1975: C语言实验——求两个整数之和
- C语言实验——求两个整数之和
- C语言实验——求两个整数之和
- C语言实验——求两个整数之和
- C语言实验——求两个整数之和(python)
- C语言实验——求两个整数之和 (sdut oj)
- C语言实验——求三个整数的最大值
- C语言实验——求三个整数的最大值
- 架构师之路
- 汉诺塔(递归)
- POJ 3270 Cow Sorting(置换)
- 基于linux下的epoll服务端和客户端编程实例
- python2.7和pip在linux下的安装
- C语言实验——求两个整数之中较大者
- 91. Decode Ways(M)
- vim使用技巧
- 行人再识别研究者
- java基础【5】
- 设计模式——速记
- codeforces Mahmoud and Ehab and the bipartiteness
- Linux下修改mysql密码以及忘记密码重置
- 优雅的Spring框架介绍