image thumbnail

Greatest Common Divisor (direct step backwards)

version 3.0.0 (1.24 KB) by Sambit Supriya Dash
Without using any arrays, the direct method of finding GCD is implemented by while loop.


Updated 15 Aug 2021

View License

Much simpler and showman's way of GCD technique is implemented through while looping by avoiding any kind of arrays, sorting or selecting.

Cite As

Sambit Supriya Dash (2022). Greatest Common Divisor (direct step backwards) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!