Do practice these question for practical exam
1. Write a program to print the first 10 natural numbers using a for loop or while loop.
2. Write a program to print the multiplication table of a number entered by the user using a for loop or
while loop.
3. Write a program to print the square of numbers from 1 to 15 using a for loop or while loop.
4. Write a program to print all even numbers between 1 and 50 using a for loop or while loop.
5. Write a program to calculate the sum of the first 20 natural numbers using a for loop or while loop.
6. Write a program to print numbers from 1 to 10 using a while loop.
7. Write a program to print the reverse of a number using a while loop or for loop.
8. Write a program to print the digits of a number one by one using a while loop or for loop.
11. Write a program to check if a number entered by the user is positive, negative, or zero.
12. Write a program to check whether a number is even or odd.
13. Write a program to find the largest of three numbers using if-else.
14. Write a program to create a list using the append() function by taking some items from the user. After
adding all items, print the final list.
15. Write a program to create a list using the append() function (add only integers) by taking some items
from the user. After adding all items, print the final list and sort them in ascending order.