0

How to write a program to print series

please describe

14th Jan 2017, 1:48 AM
sanvit sonkar
2 Respuestas
+ 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) ; }
19th Jan 2017, 5:48 AM
Harsimran Kaur Bindra
Harsimran Kaur Bindra - avatar
0
for loop
19th Jan 2017, 5:34 AM
Somnath Ghosh
Somnath Ghosh - avatar