The reason the algorithm doesn’t print “c is the greatest” after comparing ‘a’ with ‘b’ and ‘c’ is because the logic is structured in a way that checks for greatest numbers among the three(a,b,c) without directly comparing ‘a’ with ‘c’. It first compares ‘a’ with ‘b’ and then proceeds to determine the greatest among the three numbers based on the comparison results. The logic is designed to ensure that the greatest number is correctly identified and printed. If ‘a’ is not greater than ‘b’, the algorithm goes on to check if ‘b’ is greater than ‘c’. If ‘b’ is greater than ‘c’, it prints ‘b is the greatest’ because it has already established that ‘a’ is not greater than ‘b’. If ‘b’ is not greater than ‘c’, it prints ‘c is the greatest’ which means that none of the other numbers (a and b) are greater than ‘c’. The algorithm is designed to provide the correct result by considering all possible cases and comparing the results systematically.
شكراً لك❤
Super explanation. Tq so much
Welcome 😊
Why not print c is the greatest after comparing a with b and c am bit confused mam please answer
The reason the algorithm doesn’t print “c is the greatest” after comparing ‘a’ with ‘b’ and ‘c’ is because the logic is structured in a way that checks for greatest numbers among the three(a,b,c) without directly comparing ‘a’ with ‘c’. It first compares ‘a’ with ‘b’ and then proceeds to determine the greatest among the three numbers based on the comparison results. The logic is designed to ensure that the greatest number is correctly identified and printed.
If ‘a’ is not greater than ‘b’, the algorithm goes on to check if ‘b’ is greater than ‘c’. If ‘b’ is greater than ‘c’, it prints ‘b is the greatest’ because it has already established that ‘a’ is not greater than ‘b’. If ‘b’ is not greater than ‘c’, it prints ‘c is the greatest’ which means that none of the other numbers (a and b) are greater than ‘c’.
The algorithm is designed to provide the correct result by considering all possible cases and comparing the results systematically.
@@preethij427oh... oh ! i see okay okay thank you so much didi
You are great madam
Thank you
thnx😇
Love from BD❤
Most welcome 😊
thank you ma'am
Most welcome 😊
❤❤❤❤
Thanks ma'am ❤
You’re welcome!
TNX mam'm ❤
Most welcome