I'm not able to understand this! Please make it easier to understand, someone! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I'm not able to understand this! Please make it easier to understand, someone!

#include <iostream> using namespace std; int main() { int x = 1; int y; int z = 0; while (x <= 5) { cin >> y; z +=y; x++; } cout << z << endl; return 0; }

21st Feb 2020, 9:33 AM
Manas Negi
Manas Negi - avatar
1 Answer
+ 1
It just taking 5 inputs and sum of those numbers is the output displayed.. Seems completed loops, then try to analyse step by step... Don't be hurry...
21st Feb 2020, 9:42 AM
Jayakrishna 🇮🇳