codeGK
Code it ALL
Java While Loop - CodeGK

♦ Java While Loop

♣ Example1: Java While Loop

In this example, the program is printing square of integers, up till 5 from 1.
Example
Input:
Output:
While_loop