Scrierea unui numar ca suma de termeni ai sirului Data 13/07/2019 Autor narcis iordanescu Categorie Soluții -6 517 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 (26 din 58 persoane apreciaza acest articol) ShareTweetShare Despre Autor narcis iordanescu Solutii Asemanatoare 10 Linux commands to know for managing files 2 Linux commands are easy when you know how to read usage 3 5 ways I use randomization in my Home Assistant setup 0 Windows has built-in repair tools that work better than any paid optimizer 2 Your Linux desktop is frozen, but your work isn’t lost 1 Cum remediem erorile: WHEA_UNCORRECTABLE_ERROR, CRITICAL_PROCESS_DIED in Windows Server 3 Leave A Comment? × Cancel Reply Save my name, email, and website in this browser for the next time I comment. nine − = three
Leave A Comment?