1.

Write an algorithm to find the largest of 2 numbers?

Answer»

Step 1 : Start 

Step 2 : Input the values of A, B 

Step 3 : Compare A and B. If A> B then go to step 5 

Step 4 : Print” B is largest” go to Step 6. 

Step 5 : Print “A is largest” 

Step 6 : Stop



Discussion

No Comment Found

Related InterviewSolutions