Cel mai mic divizor comun c++ Data 09/05/2019 Autor narcis iordanescu Categorie Soluții -3 1436 Configurare noua (How To) Situatie Solutie 1. Prin impartire: int main () {int a, b, r; while(b<>a) { r=a%b; a=b; b=r; } 2. Prin scaderi repetate: int main() {int a,b; cin>>a>>b; while(a<>b) if(a>b) a=a-b; else b=b-a; Tip solutiePermanent Voteaza Up Down (17 din 36 persoane apreciaza acest articol) ShareTweetShare Despre Autor narcis iordanescu Solutii Asemanatoare Cum deschidem un RDP in full screen folosind Command Prompt in Windows 10 5 Cum deschidem fereastra Sound folosind Run in Windows 10 0 How to enter text with your voice on a Chromebook 7 Can’t Delete a Windows File or Folder? 3 Top 10 Linux Easter Eggs 3 How to fix – Reading a File: Permission Denied on Linux 1 Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. × nine = 63
Leave A Comment?