Design & Analysis of Algorithm
1. Write a program to print prime number series.
2. Write a program to calculate the sum of all odd number between 1 to n.
3. Write a program to check if a number is even or odd.
4. Write a program to print all numbers between 1 to 100 that are divisible
   by 2 and 5.
5. Write a program to print all multiples of 7 between 1 to 200.
6. Find and print the first ‘n’ prime numbers.
7. WAP to check whether the number is prime.
8. WAP to print squares of number from 1 to 100.
9. Print all Armstrong numbers between 1 to n.
10. Print all palindrome numbers between 1 to n.
11. Print only the even Fibonacci numbers up to n terms.
12. Write a function to calculate the area of a circle, pass radius as argument.
13. Write a function that reverses a number.
14. Write a function to find the sum of digits of a number.
15. Write a function to count the number of digits in a number.
16. WAP to print a half pyramid using ‘*’.
17. WAP to print a number pyramid:
              1       2
          1       2       3
      1       2       3       4
18. WAP to print the following:
                  B           B
              C           C       C
          D           D       D       D
19. WAP to count the number of vowels in a string.
20. WAP to find the second largest number in an array.
21. WAP to remove duplicate characters from a string.
22. WAP to implement linear search on an array.
23. WAP to implement binary search on a sorted array.
24. Display the factors of a natural numbers.
25. WAP to reverse a sentence using recursion.
26. WAP to calculate the power using recursion.
27. WAP to print the first letter of each word of a string.
28. WAP to display the factors of natural numbers.
29. WAP to calculate the factorial of a give number ‘n’.
30. WAP to calculate & print the factorial of numbers from 1 to 10 using
recursion.