write a program to calculate the Highest Common Factor of three input numbers
arupa
0
Newbie Poster
Recommended Answers
Jump to PostI give algorithm you try it in C#
HCF (GCD) Algorithm
GCD ( M, N ) {
If N > M then return GCD ( N, M )
else If N = 0 then return M
else return GCD ( N, MOD ( M, N) )
}…
All 2 Replies
Reply to this topic
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.