Computer Science, asked by mitalikashyap311, 7 months ago

define a function whic can generate and print a list where the values are square of numbers between 1 and 20(both included)

Answers

Answered by TheArkhamKnight
0

Answer:

class Squares {

   public static void main(String args[]) {

       for(int a=1;a<20;a++) {

           System.out.println(a*a);

       }

   }

}

Explanation:

Answered by asiruayo67
1

Answer:

def printValues():

l = list()

for i in range(1,21):

 l.append(i**2)

print(l)

 

print Values()

Explanation:

Similar questions