🔒 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
  • 667
    Views
  • 3
    Participants
Last reply from:
vespine

Trending Topics

Online now

Members online
1,109
Guests online
1,014
Total visitors
2,123

Forum statistics

Threads
2,274,680
Posts
28,957,598
Members
1,233,400
Latest member
lelouch05
Back
Top