Write A Program To Find Max Number Among Given Three Number
Logic :-
This Is a different logic to find max number among three number .
Step 1:- we use forth variable as 'max' and store first element in max then compare max to next to element
Step 2 :- if second number is greater than max then store second number in max if it is less then compare with third element
Output:
Enter The Three Numbers
100
200
300
The Greatest Number In Given Numbers 100 200 300 is 300
need an explanation for this answer? contact us directly to get an explanation for this answer