Problem 3
Var x;
While (x <= 5) {
Print ();
x = x + 1;
}
What is the answer?
1. If x = 3
Answer = ?
2. If x = 1
Answer = ?
What is the answer?
1. If x = 3
Answer =
The program will print 3 times.
2. If x = 1
Answer =
The program will print 5 times.
Comments
Leave a comment