# Thread: N00b to PRogramming Help

1. ## N00b to PRogramming Help

We have to write a program that takes numbers and returns there greatest common denominator. Using Euclids therom. All help would be aprreciated.

2. First write down the algorithm

e.g.

1. Get a and b from user
2. Find remainder of a/b
3. ...

etc

3. Sorry i have no clue what you are talking about lol. Ive never been introduced at all to c. So an example would be appreciated. LIke it's suppose to be written.

4. Why would your professor ask something like this of you without any programming experience? Without knowing at least a little C it will be difficult to help you with anything short of writing the program for you.

5. That is somewhat unreasonable of your professor to expect you to write a program when you have not had any instruction on how to write a program...

6. BEcause its basically a extra credit problem. ANd i would like to involve myself in all work.

7. 1) Read the tutorials on the site and on the web. They will help you learn the syntax.
2) Learn to write like a normal person.
3) Look at some algorithm design tutorials.
4) Combine the above.

8. >We have to write a program that takes numbers and returns there greatest common denominator.

I assume "We" means your math or programming class.

9. Originally posted by astro1883
Sorry i have no clue what you are talking about lol. Ive never been introduced at all to c. So an example would be appreciated. LIke it's suppose to be written.
Do you know how to find the greatest common denominator?
If you don't then it doesn't matter how much C you know, you'll never get the solution.

Writing the algorithm has nothing to do with C. It's the same set of steps as if you were calculating it on paper.

Once you have that then you translate it into C, which will be an easier task.