I need to write a code to find greatest common factor of two numbers but I have no idea how? any help? please.

First you need to find the algorithm to do the calculations. When you get that, you can start working on the code for the program.
If you have problems getting your code to work, post the code with your questions and any error messages you get.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.