Technology Evangelist, Product Engineer, Analytics Expert
The following code prints in the form of pyramid as shown below.
The following pattern is in C#, as it was asked by one of my friend.
Prints the pattern in the following way
Perfect Number is a positive number that is equal to the sum of its proper divisors.
6 is a perfect number since its divisors are 1,2,3 and 1 + 2 + 3 = 6.