Saved Bookmarks
| 1. |
Write the syntax and example for WHILE loop. |
|
Answer» Syntax of while loop: while (condition) { statement (s); } Example: #include <iostream> void main() { int a = 10; while (a<15) { cout<<"value of a:"<<a<<end1; a++; } } |
|