# 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 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:

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

XX<5? Output 0 X=0 x<5 “Hai” X=X+1 True False

XX<5? Output 0 X=0 x<5 “Hai” X=X+1 True False Hai

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True

X=0 x<5 “Hai” X=X+1 True False XX<5? Output 0 Hai 1 True Hai 2 True Hai 3 True Hai

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

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

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

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

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