Computer Science, asked by rockyarun1821, 6 months ago

Write a program to print your name four time in a same line.

Answers

Answered by anindyaadhikari13
1

Question:-

Write a program to print your name 4 times.

Program:-

this is written in Java.

class Name

{

public static void main()

{

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

System.out.print("My name is Mr. Unknown\t\t");

}

}

Answered by BrainlyProgrammer
1

Answer:

import java.util.*;

class Abcd

{

public static void main (String ar [])

{

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

System.out.print("Name \t");

}

}

\t - it is used to give space like tab key on your keyboard

Similar questions