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; }
1 Respuesta
+ 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...