Saved Bookmarks
| 1. |
Analyse the given program segment and determine how many times the loop will be executed. What will be the value of A after loop is terminated.var A , B;A = 5;B = 10;while(A>=1){document.Write(A+B);A = A - 1;B = B – 2;} |
|
Answer» Loop will execute 5 times. Value of A after the loop terminates is 0. |
|