(1660 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"

7 UpvotesUpvote |
6 DownvotesDownvote |

- Huffman's Coding Greedy Algorithm [389 Views]
- Write a C++ program to Make Simple Calculator in Console [870 Views]
- Algorithm and Flowchart for Implementing a Stack using Linked List [2337 Views]
- How to count the number of digits of any number using C++ [182 Views]
- Hash table tutorial in Python [119 Views]

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