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

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 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.