(1092 Views)

In this post, we will be learning how to find a maximum or largest number between 2 numbers taken as an input.

**Example:**

Input:

Input num1: 10

Input num2: 20

Output:

Maximum = 20

In the above pseudocode, we first take two number inputs from user and store the number in n1 and n2. Then check whether n1 is greater than n2. If n1 is greater than n2, then Print "n1 is max", else Print "n2 is max"

3 UpvotesUpvote |
1 DownvotesDownvote |

- Algorithm to Check whether Input character is a Vowel or Consonant [2424 Views]
- List all files in Amazon S3 bucket [906 Views]
- Flowchart and Algorithm for N Queen Problem [456 Views]
- Steps For Installing Git on Ubuntu 18.04 LTS [818 Views]
- Difference between #define and const in C [1924 Views]

- How To Win Ludo King Game Every Time [25500 Views]
- Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example [23836 Views]
- Algorithm to find whether number is Armstrong Number or Not [23558 Views]
- Jio Phone hang on LOGO problem Solution - Hard Reset Jio Phone [16708 Views]
- FlowChart and Algorithm to find Whether a Number is Even or Odd [12790 Views]