Computer Science, asked by royal3765raj, 1 month ago

how to write the program that output will repeat again and again

Answers

Answered by whtever6
0

Answer:

import. java. io. *;

class series

{

public static void main(String args[ ])

{

Scanner sc= new Scanner (System.in) ;

int n= newInt() ;

for(n=0; ; n++)

{

System. out. println("an infinite loop") :

}

}

}

Similar questions