English

Write an algorithm to find the greatest among two different numbers entered by the user.

Advertisements
Advertisements

Question

Write an algorithm to find the greatest among two different numbers entered by the user.

Short/Brief Note
Advertisements

Solution

Input first number
Input second number
If first > second then
     Print first number is greater then second

else :
     Print second number is greater than first
shaalaa.com
Algorithm
  Is there an error in this question or solution?
Chapter 4: Introduction to Problem Solving - Exercise [Page 84]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 4 Introduction to Problem Solving
Exercise | Q 8. | Page 84
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×