control flow statements programs
control flow statements programs
2. Program to print all the even numbers within the given range.
3. program to calculate the sum of all the numbers from 1 to given number.
4. program to calculate the sum of all odd numbers within the given range.
5. program to count the length of the string without using the string methods.
10. Program to Check whether the given number is prime number or not.
11. Program to Print the ASCII values along with the characters in a given string.
15. Program to find the given number is Harshad number or not. (Note: Harshad
number is a number which is divisible by the sum of its digits)
18. Program to find the given number is Neon number or not(Note: Neon number is
number where the sum of digits of square of given number is equal to the given
number)
20. Program to print the sum of Fibonacci numbers at even indexes and odd indexes
separately up to N terms. **********************
21. Program to find the exponential of a given number without using pow() method.
(1 + 2 + 3)/ 6 = (1 + 2 + 4 + 7 + 14)/ 28
1 = 1. )