Computer Science, asked by Amarsingh0309, 1 year ago

Write a program in Java to print your school name four times in separate lines

Answers

Answered by lusina50
4
public class HelloWorldPrinter{  public static void Main(String[] args) { for(int i=0; i<10; i++){ System.out.print("Hello World"); } } }

Anonymous: Hello world is ur school's name ??
Answered by Anonymous
5

CODE :-

class My_School

{

public void main()

{

for(int i = 1;i<=4;i++)

{

System.out.println("National Gems Higher Secondary School");

}

}

}

OUTPUT :-

National Gems Higher Secondary School

National Gems Higher Secondary School

National Gems Higher Secondary School

National Gems Higher Secondary School

Hope it helps :-)

_____________________________________________________________________

Similar questions