write an algorithm to find the greater of the two numbers
Answers
Answered by
106
Answer:
Step 1: Start
Step 2: Declare variables a,b and c.
Step 3: Read variables a,b and c.
Step 4: If a>b
If a>c
Display a is the largest number.
Else
Display c is the largest number.
Else
If b>c
Display b is the largest number.
Else
Display c is the greatest number.
Step 5: Stop
Answered by
1
Answer:-
An algorithm to find the greater of the two numbers:-
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
#SPJ2
Similar questions