Header Ads Widget

Python program to find the minimum between two numbers

 

  Python program to find the minimum between two numbers

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

Sample input

5 
4

Sample output

4 is minimum

Python program to find the minimum between two numbers

The objective of code is to find the minimum between two numbers given by user .

Code(Python):-

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

Output:-

5
4
4 is minimum


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:-

Post a Comment

0 Comments