0
How to code numbers 1-10 showing thier squares
loop
2 odpowiedzi
+ 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)]
0
helpful...thanks buddy :)