- 1
How to print squares of first 10 natural numbers??
With using python?
2 Respuestas
+ 7
Because it's a homework related question, so like 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥
Told you that we can't do that.
But I can give you some hints.
Hint(easiest ways according to me) :-
You can use the for loops with range from the first natural number to the last natural number
and use i**i with it.
Or
You can also use while loops with it.
Or
You can import math and use the square function
Or
You can simply print all squares of first ten natural numbers.
- 1
Ty