Write a program to print squares of 1 to 5
Answers
Answered by
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
English,
21 days ago
English,
21 days ago
English,
1 month ago
Physics,
8 months ago
Accountancy,
8 months ago