![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Given two positive integers determine the greatest common divisorGiven two positive integers determine the greatest common divisor (gcd). Take the right most digit of the gcd to represent the number of rows in a pattern and the second right most digit to represent the columns
Enter POsitive integer:462 Enter positive integer:363 462%363 = 99 363%99 = 66 99%66=33 66%33=0 33 is the gcd Number of rows = 3 Number of columns = 3 3** 33* 333 I tried compiling this but all i get was errors and warnings and unlimited loops |
|||
|
#2
|
|||
|
|||
Re: Help needed in C programmingYou tried compiling what? Do you have code?
|
|
#3
|
|||
|
|||
Re: Help needed in C programmingAs fakepoo says, post your code, and we'll take a look.
|
Recent GIDBlog
Non-US citizens serving in the military by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for opinions | crystalattice | Miscellaneous Programming Forum | 6 | 27-Sep-2006 21:02 |
| [c] Programming Help Needed!!! | xspacex | C Programming Language | 3 | 12-Feb-2006 06:22 |
| printer / font color / windows programming | nicolas_qc | MS Visual C++ / MFC Forum | 0 | 03-Jan-2006 23:13 |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 15:41 |
| GUI programming | crystalattice | CPP / C++ Forum | 5 | 14-Sep-2004 12:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The