Relationship between two numbers【2】
来源:互联网 发布:金玉满堂 知乎 编辑:程序博客网 时间:2024/06/02 04:05
Relationship between two numbers【2】
The task is very simple, you need to compare two integers input by the user:
I will input two integers a and b, if a < b, you need to print “a is less than b”; if a > b, you need to print “a is greater than b”; if a = b, you need to print “a is equal to b”.
for example:
input
3 4
output
3 is less than 4
代码
#include<stdio.h>int main() { int a, b; scanf("%d%d", &a, &b); if (a < b) { printf("%d is less than %d\n", a, b); } else if (a > b) { printf("%d is greater than %d\n", a, b); } else if (a = b) { printf("%d is equal to %d\n", a, b); } return 0;}
0 0
- Relationship between two numbers【2】
- use a relationship between two DataTable
- relationship between libxl & hvmloader
- Relationship Between Availability and Reliability
- Relationship between the Linux Distros
- The only legal comparisons are between two numbers, two strings, or two dates
- 2 Add Two Numbers
- 2、Add Two Numbers
- 2、Add Two Numbers
- 2 Add Two Numbers
- 2Add Two Numbers
- #2 Add Two Numbers
- 2 - Add Two Numbers
- 2Add Two Numbers
- 2 Add Two Numbers
- 2 Add Two Numbers
- #2 Add Two Numbers
- 2 Add Two Numbers
- 整数、区间与区间端点
- spring must know
- Ubuntu 电脑过热
- mybatis-3.4.0---资源获取系列-ClassLoader操作
- PHP页面跳转三种实现方法
- Relationship between two numbers【2】
- 编程之美-数组除法
- Codeforces Round #354 (Div. 2) B Pyramid of Glasses(模拟)
- JDK的安装与配置
- 队列的基本实现
- EndNote使用方法
- codeforces 297D Color the Carpet(构造)
- HTTP的303、307状态码
- bash简单命令扩展