|
|
#1 |
|
Beta Member
Join Date: Sep 2011
Posts: 1
|
How to write the c++ code for this sorta question....i couldn't get the logic even.....
to print the factors of a number given by the user in a pyramid pattern...like if 4 is the number given by the user...its factors are 1,2,4...the we have to print that in the pyramid format i have provided in the link..... https://picasaweb.google.com/1018492...90573115162386 |
|
|
|
|
|
#2 |
|
Site Team
Join Date: Jul 2009
Posts: 2,627
|
The link is invalid. But what if the amount of numbers is such that it can't be arranged in a pyramid shape?
__________________
Save the whales, feed the hungry, free the mallocs. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|