0

In the while loop why the value of variable also shown with the other values obtained when the loop is completed.. please reply.

8th Jul 2017, 2:39 PM
Kartikey Sriwardhan
Kartikey Sriwardhan - avatar
3 odpowiedzi
0
yesss here it iss.
8th Jul 2017, 2:46 PM
Kartikey Sriwardhan
Kartikey Sriwardhan - avatar
0
int x=1; while(x<6){ cout<<"number"<<num<<endl; num=num+1; }
8th Jul 2017, 2:56 PM
Kartikey Sriwardhan
Kartikey Sriwardhan - avatar
0
can you explain that in the output of this program how do we get the value of the variable declared above...
8th Jul 2017, 2:58 PM
Kartikey Sriwardhan
Kartikey Sriwardhan - avatar