Presentation is loading. Please wait.

Presentation is loading. Please wait.

X=0 x<5 “Hai” X=X+1 True False XX<5? Output DO-WHILE x=0; do { cout<<“Hai”; x++; } while(x<5);

Similar presentations


Presentation on theme: "X=0 x<5 “Hai” X=X+1 True False XX<5? Output DO-WHILE x=0; do { cout<<“Hai”; x++; } while(x<5);"— Presentation transcript:

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


Download ppt "X=0 x<5 “Hai” X=X+1 True False XX<5? Output DO-WHILE x=0; do { cout<<“Hai”; x++; } while(x<5);"

Similar presentations


Ads by Google