Assignment
1. Write a program to print all numbers between 1 and 100 that are
divisible by both 3 and 7.
2. Create a program to calculate the sum of squares of the first 10
natural numbers using a for loop.
3. Write a program to count the number of vowels in a given string
using a for loop.
4. Write a program to find the largest number in an array using a for
loop.
5. Create a program to print all prime numbers between 1 and 50
using a for loop.
6. Use a for loop to print the reverse of a given string.
7. Write a program to check if a number is a palindrome using a for
loop.
8. Use a for loop to generate and print the first 10 numbers in the
sequence: 2, 4, 8, 16, 32, ...
9. Use a for loop to count how many times a specific character
appears in a string.
10. Write a program to calculate the product of all digits of a
given number using a for loop.