Cel mai mic divizor comun c++ Data 09/05/2019 Autor narcis iordanescu Categorie Soluții 0 1722 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 (26 din 51 persoane apreciaza acest articol) ShareTweetShare Despre Autor narcis iordanescu Solutii Asemanatoare How to sync your Android phone’s files to a PC for free 1 Use these 7 Linux commands to keep your system tidy and fast -2 How to mass delete emails in Gmail 3 How to bring back classic context menu on Windows 11 1 Cum identifici exact ce aplicație sau proces ascuns oprește calculatorul să intre în modul Sleep 2 Fișierele nu sunt afișate pe hard disk extern în Windows 11 5 Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. six − five =
Leave A Comment?