🔒 Closed Pa see ng output tracing technique niyo with these codes

Status
Not open for further replies.
lalagay ba yung output?

eto:
Value of variable i is: 1
Value of variable i is: 2
Value of variable i is: 3
Value of variable i is: 4
Value of variable i is: 5
Value of variable i is: 6
 
for(int i=1; i<=6; i++){

cout<<"Value of variable i is: "<<i<<endl;
}


i = 1,
1 <= 6 ? if true, then display value of i, then i++

so, i = 2
if 2 <= 6 ? if true, then display value of i , then i++

.....

i = 7 ? since false, out na sa loop..
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 702
    Views
  • 3
    Participants
Last reply from:
vespine

Trending Topics

Online now

Members online
389
Guests online
4,003
Total visitors
4,392

Forum statistics

Threads
2,304,628
Posts
29,161,099
Members
1,196,920
Latest member
zeroes00
Back
Top