Exercise Programs On While Loop
Exercise Programs On While Loop
3. Write a python program to reversing a number using while loop and check that number is
a palindrome or not.
4. Write a python program to find the factorial of a given number using while loop.
5. Write a python program to print the square of all numbers from 0 to 10
6. Write a python program to find the sum of all even numbers from 0 to 10
7. Write a python program to read three numbers (a,b,c) and check how many numbers
between ‘a’ and ‘b’ are divisible by ‘c’
8. Write a python program to get the following output
1-----99
2-----98
3-----97
..
..
..
98-----2
99-----1