Program to find greatest of three numbers in python


Asked by admin @ in Computer Science viewed by 349 People


Write a program in python to find the greatest number among three numbers​

Answered by admin @



Explanation:

# Python program to find the largest number among the three input numbers.

# take three numbers from user.

num1 = float(input("Enter first number: "))

num2 = float(input("Enter second number: "))

num3 = float(input("Enter third number: "))

if (num1 > num2) and (num1 > num3):

largest = num1


Similar Questions

Write a program to find average of three numbers

Asked by admin @ in Computer Science viewed by 343 persons

Write a program to find average of three numbers.

Pseudo code to find minimum among three numbers in python

Asked by admin @ in Computer Science viewed by 378 persons

Pseudocode to find the minimum among three numbers

Find the greatest number that will divide 445

Asked by admin @ in Math viewed by 318 persons

Find the greatest number that will divide 445, 572 and 699 leaving reamainder 4, 5and 6 respectively

Find the greatest number which divides 2011 and 2623

Asked by admin @ in Math viewed by 345 persons

Find the greatest number which divides 2011 and 2623 leaving remainders 9 and 5 respectively

Program to find sum of two numbers in c++

Asked by admin @ in Computer Science viewed by 356 persons

Write a program in C++ to display the sum of two numbers 20 and 30.

Find the greatest perfect square of 5 digit number

Asked by admin @ in Math viewed by 335 persons

Find the greatest 5 digit number which is a perfect square.find iys square root.

Find the greatest number that will divide 43 91

Asked by admin @ in Math viewed by 306 persons

Find the greatest number that will divide 43, 91 and 183 so as to leave the same remainder in each case.

Find the greatest number which divides 615 and 963

Asked by admin @ in Math viewed by 328 persons

Find the largest number which divide 615 and 963 leaving remainder 6 in each case.

Write a program to swap two numbers in python

Asked by admin @ in Computer Science viewed by 356 persons

Write a program is python to swap two numbers.

Find the greatest number which divides 285 and 1249

Asked by admin @ in Math viewed by 464 persons

Find the greatest number which divides 285 and 1249 leaving remainder 9 and 7 respectively

Python program to find all roots of a quadratic equation

Asked by admin @ in Computer Science viewed by 368 persons

Write a python program to find all roots of a quadratic equation​

Write the greatest 4 digit number using three different digits

Asked by admin @ in Math viewed by 332 persons

Greatest 4 -digit number using 3 different digits=​

Find greatest 4 digit number which is a perfect square

Asked by admin @ in Math viewed by 303 persons

Find the greatest 4 digit number which is perfect square

Find numbers between 1 and 100 having exactly three factors

Asked by admin @ in Math viewed by 359 persons

Which are the numbers between 1 and 100 having exactly three factors

Which three dimensional figure has the greatest number of faces

Asked by maham237 @ in Mathematics viewed by 383 persons

Which three-dimensional figure has the greatest number of faces? hexagonal prism octagonal pyramid rectangular prism pentagonal pyramid

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19035 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15822 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10981 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10412 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8727 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8149 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7849 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6496 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5800 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5701 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5483 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4989 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4981 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4693 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4495 persons