Download presentation
Presentation is loading. Please wait.
Published byRebeca Malden Modified over 9 years ago
1
X=0 x<5 “Hai” X=X+1 True False XX<5? Output DO-WHILE x=0; do { cout<<“Hai”; x++; } while(x<5);
2
XX<5? Output 0 X=0 x<5 “Hai” X=X+1 True False
3
XX<5? Output 0 X=0 x<5 “Hai” X=X+1 True False Hai
4
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1
5
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True
6
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai
7
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2
8
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True
9
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai
10
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3
11
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True
12
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True Hai
13
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True Hai 4
14
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True Hai 4True
15
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True Hai 4True Hai
16
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True Hai 4True Hai 5
17
X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True Hai 4True Hai 5False
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.