Scrierea unui numar ca suma de termeni ai sirului Data 13/07/2019 Autor narcis iordanescu Categorie Soluții -5 467 Configurare noua (How To) Situatie Solutie int n,a,b,c; cin>>n; while(n>0) { a=0;b=1; while(a+b<=n) { c=a+b; a=b;b=c; } cout<<c<<” “; n=n-c; } Tip solutiePermanent Voteaza Up Down (21 din 47 persoane apreciaza acest articol) ShareTweetShare Despre Autor narcis iordanescu Solutii Asemanatoare How to share files safely using OneDrive links 1 4 Wi-Fi fixes that actually stop random slowdowns and drops 2 5 things I wish I knew when I first learned programming 0 How to factory reset Windows 11 removing everything 4 How to reinstall Windows 11 without losing files 1 How to disable Snipping Tool Print Screen key on Windows 11 0 Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. + 1 = 2
Leave A Comment?