Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
50.1k views
in Programming by (30 points)
closed by

Draw a flowchart to find the largest of three numbers x, y and z.

2 Answers

+1 vote
by (17.0k points)
selected by
 
Best answer
  • Firstly we will start with reading all three numbers.
  • Consider the three numbers be A, B and C.
  • Then in the next step, we will compare first two numbers A > B?
  • If A > B is true we will compare A with C.
  • If A > C is true then A is the largest number.
  • If A > C is false then C is the largest number.
  • If A > B is false we will compare B with C.
  • If B > C is true then B is the largest number.
  • If B > C is false then C is the largest number.
  • After getting the results the flowchart gets terminated.

 

+2 votes
by (24.8k points)

Let the Number be A,B and C

Algorithm:

1.  Start

2.  Input A,B,C

3.  If (A>B) and (A>C) then print “A is greater”.

Else if (B>A) and (B>C) then print “B is greater”.

Else print “C is greater”.

4.  Stop

Flowchart:

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...