0
How to write a program to print series
please describe
2 Antworten
+ 1
You can use any one of the loops, for example :-
for loop
While loop
Do-while loop
#For loop to print a series of n numbers, where n is a user input
for(int i=1 ; i<=n ; i++)
{
System.out.println(i) ;
}
0
for loop