+ 3

How i can to print the same message 243 times? (Java)

Without cycles

26th Jan 2018, 2:29 PM
Pablo Osorio Marulanda
Pablo Osorio Marulanda - avatar
5 ответов
+ 20
One option is to use print 243 times or you can do something like this : https://code.sololearn.com/cK0C2jYPL7cb/?ref=app
26th Jan 2018, 3:01 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 18
https://code.sololearn.com/cgeyYwFZ63WS/?ref=app
26th Jan 2018, 2:58 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 17
Without loops, recursion...without any cycles 😊 https://code.sololearn.com/cb8wIQk7se9V/?ref=app
26th Jan 2018, 4:00 PM
LukArToDo
LukArToDo - avatar
+ 2
if loops or recursion is not allowed then you could assign a string = message and then system. out. println(string) 243 times.
26th Jan 2018, 2:32 PM
shobhit
shobhit - avatar
0
but, how I can to do it just using methods?
29th Jan 2018, 12:14 AM
Pablo Osorio Marulanda
Pablo Osorio Marulanda - avatar