Computer Science, asked by jerry911, 19 days ago

Write a program to print your name 5 times using (*) Operator.

Answers

Answered by ramesham1673
0

import Java.util.*;

public class Example {

public static void main(String [ ] args){

Scanner scan = new Scanner(System.in);

System.out.print("Enter your name 5

times);

int name = *name;

System.out.println("name written 5

times);

scan.close;

} }

Output:

Name : (write your name)

Name written times:(write your name 5

times)

I hope it helps you.

Please mark as brainliest.

Similar questions