Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 09-04-2011, 01:43 AM   #1
Beta Member
Join Date: Sep 2011
Posts: 1
Default C++ challenging code....needed help !

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.....


Vishal Srinivas is offline   Reply With Quote
Old 09-05-2011, 07:50 AM   #2
Site Team
berry120's Avatar
Join Date: Jul 2009
Location: England, UK
Posts: 3,422
Default Re: C++ challenging code....needed help !

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.
berry120 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 06:51 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0