Computer Science, asked by nandinichaudhary1912, 1 day ago

Write a Java program to display following pattern on the screen.
I
I N
I N D
I N D I
I N D I A

Answers

Answered by n6369889
1

Answer:

Using the switch statement, write a menu-driven program for the following: ... (ii) To display the following pattern: ... import java.util.Scanner; class

Answered by navanithishere
0

Answer:

public class Main{

   public static void main(String[] args) {

       System.out.println("I    ");

       System.out.println("IN   ");

       System.out.println("IND  ");

       System.out.println("INDI ");

       System.out.println("INDIA");

   }

}

Explanation:

public class Main{

   public static void main(String[] args) {

       System.out.println("I    ");

       System.out.println("IN   ");

       System.out.println("IND  ");

       System.out.println("INDI ");

       System.out.println("INDIA");

   }

}

Attachments:
Similar questions