Computer Science, asked by lakraanish56, 11 months ago

wap to input name of the student and his roll number. print the name as many times as the roll no. given using for loop in java​

Answers

Answered by kingcobra1
0

Answer:

public class rollname

{

public static void main(string name,int rollno)

{

int i;

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

{

System.out.println(name)

}

}

}

Similar questions