Find HCF/GCD using for loop || C++ PROGRAM

Veröffentlicht am: 09 Juni 2021
auf dem Kanal: CodeSays
720
12

"Find HCF/GCD using for loop", C++ PROGRAM.

The logic of this program is simple.

In this program, the smaller integer between [ n1 ] & [ n2 ] is stored in [ n2 ]. Then the loop is iterated from i=1 to i is less than equal to n2 and in each iteration, the value of i is increased by 1.

If both numbers are divisible by [ i ] then, that number is stored in variable [ hcf ].

This process is repeated in each iteration. When the iteration is finished, HCF will be stored in variable [ hcf ].


Source Code link :
https://codesayswebsite.blogspot.com/...

CodeSays Website link :
https://codesayswebsite.blogspot.com/

All Source Codes are available here :
https://codesayswebsite.blogspot.com/


#COMPUTERLANGUAGE :)


Auf dieser Seite können Sie das Online-Video Find HCF/GCD using for loop || C++ PROGRAM mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CodeSays 09 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 720 Mal angesehen und es wurde von 12 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!