Loops - Programs For Practice - Python
Loops - Programs For Practice - Python
st st
1. Print 1 50 ODD numbers. ( 1 50 EVEN numbers)
2. Print all Nelson numbers.
3. Print all Armstrong numbers.
4. Print factorial of a number.
5. Check a number is a Prime number or not.
6. To print Fibonacci sequence of ‘n’ terms.(0,1,1,2,3,5,8,13,…)
7. To convert a decimal number to binary number.
8. To convert a binary number to decimal number.
9. To print all Prime numbers between 1 to 100.
10. To print Sum of series…
a. 1/1 + 1/2 + 1/3 +……+ 1/n
b. 1/1! + 1/2! + 1/3! +….+1/n!
c. 1/1! + 2/2! + 3/3! +….+n/n!
n
d. 1/1! + 4/2! + 27/3! +….+n /n!