Flowchart for finding biggest number in python

Table of Contents

## Develop a flow chart for finding maximum “max” and minimum “min” number among these three numbers

**Aim: **

To find biggest number between three numbers.

**Algorithm:**

** Step1**: start

** Step2: **Declare the variables a, b,c and read the inputs.

** Step3**: If the condition a>b and a>c is true Print that a is largest.

** Step4: **Otherwise go to the nextcondition b>c** .**If it is truePrint that b is largest, Otherwise Print that c is largest,

** Step5: **End

**Source Code** to find largest number using python

# we can find greater number in different way and in python there are different short- cut method to find the greater and smaller number among given number other wise you can take user input and then also you can. Sample code is given below

def greater_smaller(num1,num2):

if num1>num2:

return “num_1 is greater”

elif num2>num1:

return “num_2 is greater”

return “both are equal”

num1,num2=input(“enter your num1&num2 values:”).split(“,”)

print(greater_smaller(num1,num2))

**Flowchart:**

**Input:**

enter a value : 10

enter b value : 25

enter c value : 12

**Output:**

b is largest

## b) Implement Python script to find biggest number between two number.

Aim:

To find biggest number between two numbers

## Algorithm for finding biggest number

Step1: Start

Step2; Declare the variables a & b and read a,b.

Step3: check condition a>b

Step 4: If the condition is true Print that a is largest

Step5: Otherwise Print that b is largest

Step6: End

Program:

a=int(input(“enter a:”))

b=int(input(“enter b:”))

if (a>b):

print(“a is largest”)

if (a<b):

print(“b is largest”)

else:

print(“a and b are equal”)

Output:

>>>

enter a:15

enter b:23

Output:

b is largest

>>>

**Related Link**:

- flow chart for finding largest element in array
- flowchart to short the list of number
- flowchart for swapping two values
- flowchart to reverse of a number
- write a program to determine whether the person is eligible for voting or not
- flowchart to check odd and even
- Python Comment | Creating a Comment | multiline comment | example
- Python Comment | Creating a Comment | multiline comment | example
- Python Dictionary Introduction | Why to use dictionary | with example
- How to do Sum or Addition in python
- Python Reverse number
- find common number in python
- addition of number using for loop and providing user input data in python
- Python Count char in String
- Python Last Character from String
- Python Odd and Even | if condition
- Python Greater or equal number
- Python PALINDROME NUMBER
- Python FIBONACCI SERIES
- Python Dictionary | Items method | Definition and usage
- Python Dictionary | Add data , POP , popitem , update method
- Python Dictionary | update() method
- Delete statement , Looping in list In Python
- Odd and Even using Append in python
- Python | Simple Odd and Even n

Flowchart for finding biggest number in python

https://en.wikipedia.org/wiki/Flowchart

https://en.wikipedia.org/wiki/Maximum_flow_problem