Computer Science, asked by lakraanish56, 11 months ago

wap a program to input name and roll no. of student.print the name as many times as the roll number using Java program​

Answers

Answered by kingcobra1
1

Answer:

public class rollname

{

public static void main(string name;int rollno)

{

int i;

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

{

System.out.println(name);

}

}

}

Explanation:

if you cannot understand then comment to me

Similar questions