Computer Science, asked by guptasujal345, 1 month ago

Write a program to print squares of 1 to 5

Answers

Answered by satwikdeshmukh91
0

Answer:

Given a natural number ‘n’, print squares of first n natural numbers without using *, / and -.

Examples :

Input: n = 5

Output: 0 1 4 9 16

Input: n = 6

Output: 0 1 4 9 16 25

Similar questions