1
1
Write a program to display your name multiple times using DO WHILE...LOOP,
Answers
Answered by
2
import java.util.*;
public class program1
{
public static void main(String args[])
{
Scanner scr = new Scanner(System.in);
String a;
int c=1;
System.out.println("Enter Your name");
a = scr.nextLine();
do
{
System.out.println(a);
c++;
}
while(c<10);
}
}
Similar questions