0

How to code numbers 1-10 showing thier squares

loop

18th Jan 2018, 7:46 PM
Kenn Diego
Kenn Diego - avatar
2 ответов
+ 2
java: for(int i = 1; i <= 10; i++){ System.out.println(i*i); } python: for i in range(11): print(i**2) or to save in a list: list = [i**2 for i in range(11)]
18th Jan 2018, 7:58 PM
Jeremy
Jeremy - avatar
0
helpful...thanks buddy :)
18th Jan 2018, 8:02 PM
Kenn Diego
Kenn Diego - avatar