Write a program to print your name 5 times using (*) Operator.
Answers
Answered by
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
English,
9 days ago
Social Sciences,
19 days ago
Social Sciences,
19 days ago
Science,
9 months ago
English,
9 months ago