(370 Views)

In this post, we will be learning how to find a maximum or largest number between 2 numbers taken as 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 |

- Redirect port 80 to some another port using iptables on CentOS [269 Views]
- Algorithm to find Maximum of 3 numbers [2581 Views]
- Pseudocode and Flowchart for finding the largest element in an Array [99 Views]
- 0/1 Knapsack problem with solution [2479 Views]
- How to send a Header data through HTTP Request using curl [237 Views]

- Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example [10121 Views]
- Algorithm to find whether number is Armstrong Number or Not [9465 Views]
- How To Win Ludo King Game Every Time [9405 Views]
- error: Multiple commands produce error in Xcode 10 [5658 Views]
- FlowChart and Algorithm to find Whether a Number is Even or Odd [5118 Views]