WHILE LOOP IN JAVA

While loop: Syntax: While loop is used to repeatedly execute the code in between the braces as long as the specified condition is met. While loop is considered as repeating if statement. It saves time, reduce the code & error. Ex 1: 5 times Print the name “Rajalakshmi” Output: RajalakshmiRajalakshmiRajalakshmiRajalakshmiRajalakshmi Note: Program 9th line DoContinue reading “WHILE LOOP IN JAVA”

Design a site like this with WordPress.com
Get started