Ask your Question

PEOPLE YOU MIGHT KNOW

Jaya
Jaya

Delhi,  India
Deepak
Deepak

Cluster Credit Manager

Patna,  India
Maheshkumar
Maheshkumar

Fresher software Devloper

Gandhinagar,  India
Vaibhav
Vaibhav

Web Developer & Software Developer

Ichalkarnji,  India
Vinod
Vinod

Team Lead in User Admin Team

PUNE,  India

Write to us

Ask Question

Program to print this series.

Srinu Don

2,14,84,420,1680,5040

Srinu Don
profile Tarun 15th February 2019

The pattern of the number series is :

2 * 7 = 14
14 * 6 = 84
84 * 5 = 420
420 * 4 = 1680
1680 * 3 = 5040
5040 * 2 = 10080

Here is the method to print this series:

int i = 7;
int num = 2;
for (i; i > 0; i--) {
num = num * i;
println(num);
}

Write a comment ...
Post comment
Cancel

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site