1.

2.

a.

*

**

***

****

b.

*

***

*****

***

*

c.

1010101

10101

101

1

3.

4.

A inifinte loop never ends. Condition is always true.

5.

4! = 1*2*3*4 = 24

3! = 3*2*1 = 6

2! = 2*1 = 2

Also,

1! = 1

0! = 1

Write a program to calculate factorial of a number.

6.

7.

1.

INUPT : 123 OUPUT : 6

INUPT : 12345 OUPUT : 15

2.

E.g.- 153 is an Armstrong number because (1

Write all Armstrong numbers between 100 to 500.

3.

INPUT : 123 OUTPUT : 321

INPUT : 12345 OUTPUT : 54321

4.

If a factor of a number is prime number then it is its prime factor.

5.

Recent Posts

7 Critical Tips to Learn Programming Faster

Beginning with ML 2.0: Multivariate Linear Regression

Beginning with Machine Learning: Linear Regression

Scrolling Progress Indicator