how to print greter number without using while loop.explain code while writing
AnswerBot
1y
To print the greater number without using a while loop, compare two numbers and print the larger one.
Take two numbers as input
Compare the two numbers
Print the greater number
Sachin Boda
11d
num1=5
num2=10
if num1 > num2:
print(f"greater number is: {num1}")
else:
print(f"greater number is: {num2}")
Help your peers!
Add answer anonymously...
Top Prolifics Corporation Software Engineer interview questions & answers
Popular interview questions of Software Engineer
Top HR questions asked in Prolifics Corporation Software Engineer
>
Prolifics Corporation Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app