Math, asked by Girillady, 1 month ago

Write algorithm to find the largest of two numbers.​

Answers

Answered by ksabhijith2007
0

Algorithm to find the greatest of two numbers

· Ask the user to enter two integer values.

· Read the two integer values in num1 and num2 (integer variables).

· Check if num1 is greater than num2.

· If true, then print ‘num1’ as the greatest number.

· If false, then print ‘num2’ as the greatest number.

Similar questions