What is the output? šŸ¤” | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What is the output? šŸ¤”

//Programa so koja se sobiraat broevite od 1 do 10 #include<iostream> using namespace std; int main() { int n=1; int zbir=0; do { zbir=zbir+n; //zbir+=n; n=n+1; //n+=1; } while (n<=10) cout<<"Zbirot na broevite od 1 do 10 e:"<<zbir<<endl; return 0; }

18th May 2020, 12:22 PM
Mihaela Trencheska
1 Resposta
+ 1
the output isā€Zbirot na broevite od 1 do 10 e:55ā€ (by the way,do not forget ā€˜;ā€™ after ā€˜while(n<=10)ā€™)
19th May 2020, 6:35 AM
Zhengrong Yan
Zhengrong Yan - avatar