Check sibling questions

Write a pseudocode to find largest of the three numbers.

 

Answer:

Pseudocode to find largest of three numbers:

Step 1: Set largest = 0

Step 2: Input a,b,c

Step 3: If (a>b) AND (a>c)  

largest = a  

ELSE IF(a>b) AND (a<c)  

largest =c  

ELSE IF(b>a) AND (b>c)  

largest =b  

ELSE IF (b>a) AND (b<c)  

largest = c 

Step 4: Print largest

Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.