Professional Documents
Culture Documents
While Loop Practice-2
While Loop Practice-2
While Loop tells the computer to do something as long as the condition is met. Its
construct consist of a block of code and a condition. The condition is evaluated, and if the
condition is true, the code within the block is excuted.
Java Code
Python Code
Problem: Write a program to reverse the digit of the given number.
Java Code
Python Code
Problem: Write a program to guess the number.
Java Code
Python Code
Question 2: Write a program to find if the number is palindrome or not. (Input should
be taken from user).