Skip to main content

Featured

Introduction to Numpy Library in Python

Introduction to Numpy Library in Python NUMPY - Introduction Introduction     NUMPY stands for Numerical Python. Numpy is one of the libraries for the python programming language. It is used for high level mathematical calculations. It has the large collection of functions for working with the multi-dimensional arrays, matrices, linear algebra, Fourier transform, etc. Installation of Numpy 1. Open the command or terminal on your system. 2. Enter the following command below.      #installation of NUMPY using PIP      pip install numpy       (OR)       #installation of NUMPY using CONDA      conda install numpy 3. Now, NUMPY installed on your system. To verify that use the command below.      #check for version of NUMPY      numpy --version  Tip : Use Anaconda Navigator , it comes with built-in software of JUPYTER NOTEBOOKS and pre-installed packages like Nump...

Program to Find Biggest of Three Numbers in Python

Python - Program to Find Biggest of Three Numbers

Python - Program to Find Biggest of Three Numbers
Python - Program to Find Biggest of Three Numbers


Source Code

Aim :

    To write a program to find biggest of three numbers in python.

Algorithm :

  • Get the required input from the user by using input statement for 'a' represents the first number, 'b' represents the second number and 'c' represents the third number.
  • Find biggest of three numbers using the following (a>b and a>c) in the 'if' statement condition and (b>c) in the 'elif' statement condition.
  • Display the result with the help of print statement

Program :

#Program to find biggest of three numbers
#'a' represents the first number, 'b' represents the second number and 'c' represents the third number
#and get input from user
a = int(input("Enter the first number : "))
b = int(input("Enter the second number : "))
c = int(input("Enter the third number : "))
if(a>b and a>c):
    print(f"The number {a} is a biggest number")
elif(b>c):
    print(f"The number {b} is a biggest number")
else:
    print(f"The number {c} is a biggest number")

Output :

Enter the first number : 
12
Enter the second number : 
22
Enter the third number : 
32
The number 32 is a biggest number

Terminal Code :

Python - Biggest of Three Numbers Program
Python - Biggest of Three Numbers Program


Terminal Output :

Python - Biggest of Three Numbers Output
Python - Biggest of Three Numbers Output


Result :

    The output was executed successfully and result was verified.


Personal Writings for Readers!!!

Story behind single family described in Pandemic Family Book.


Read more on...

Paperback - https://amzn.to/34NS6Sk

Amazon Kindle - https://amzn.to/3aKtIng

Kobo Writing - https://bit.ly/3iQysNy

Comments

Popular Posts