GIDForums

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Mar-2008, 10:19
malmanso malmanso is offline
New Member
 
Join Date: Mar 2008
Posts: 1
malmanso is on a distinguished road
Thumbs down

Given two positive integers determine the greatest common divisor


Given 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  
Old 27-Mar-2008, 11:17
fakepoo fakepoo is online now
Regular Member
 
Join Date: Oct 2007
Posts: 395
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: Help needed in C programming


You tried compiling what? Do you have code?
  #3  
Old 27-Mar-2008, 15:08
mikhail mikhail is offline
Junior Member
 
Join Date: Mar 2004
Location: Dublin, Ireland
Posts: 73
mikhail is on a distinguished road

Re: Help needed in C programming


As fakepoo says, post your code, and we'll take a look.
 

Recent GIDBlogNon-US citizens serving in the military by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 13:09.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.