Header Ads Widget

Python program to find the maximum between two numbers

 

  Python program to find the maximum between two numbers

Given two numbers , write a program to find the maximum between both numbers .

Sample input:

5 4

Sample output:

5  is maximum

Python program to find the maximum between two numbers

The objective of the code is to find the maximum between two numbers .

Code(Python):-

a=int(input())
b=int(input())
if a>b:
print(f"{a} is maximum")
else:
print(f"{b} is maximum")

Output:-

5
4
5 is maximum

Recommended Post :-

HCL Coding Questions:-

Capgemini Coding Questions:-

Companies interview:-

Full C course:-    

Key points:-

Cracking the coding interview:-

 Array and string:-

Tree and graph:-

Hackerearth Problems:-

Hackerrank Problems:-

Data structure:-

 MCQs:-