LEC :12 | JAVA

      

LEC:12

Loops and their Types in JAVA





Source Code:
package lec_5;

import java.util.*;

public class Lec_5 {

    public static void main(String[] args) {
        //table of 5 from 1 to 10
//        for(int i=1;i<=10;i++)
//        {
//            System.out.println("the line number : "+i*5);
//        }

//int i=1;
//while(i<11)
//{
//          System.out.println("the line number : "+i*5);
//          i++;
//}

//int i=11;
//do{
//          System.out.println("the line number : "+i*5);
//          i++;
//}
//while(i<11);

//for -each loop 

    }

}



Comments

Popular posts from this blog

RunwayWithCode

web development Lectures

C++ Lectures