Computer Science, asked by shatakshichauhan26, 8 months ago

Write a Java program to print your School name four times in separate lines. ​

Answers

Answered by kingcobra1
1

Answer:

public class schoolname

{

public static void main(string schname)

{

int i;

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

{

System.out.println(schname)

}

}

}

Explanation:

taking input of the school name in string schname

Answered by Brenquoler
0

Java program to print your name four times:

class Name

{

public static void main (string args [])

{

int c=0;

while (c<4)

{

System.out.println ("Jalaj");

c++

}

}

}

Similar questions