+ 1

How to get power 1 to 20

How can i get the power of number 1to 20 in row in c# or python

14th Mar 2020, 1:35 PM
Tharusha dilshan
Tharusha dilshan - avatar
11 Réponses
+ 2
Just do in Python like this x = 1 while x <= 20: print(x**2) x = x + 1
14th Mar 2020, 1:39 PM
A͢J
A͢J - avatar
+ 2
Tharusha dilshan Same logic but just use int x = 1; while (x <= 20) { Console.WriteLine(Math.Pow(x, 2)); x++; }
14th Mar 2020, 1:41 PM
A͢J
A͢J - avatar
+ 2
Martin Taylor He said the power of number 1 to 20. He didn't mention the what power 2, 3 or 4 and so on. So I gave that Example.
14th Mar 2020, 2:29 PM
A͢J
A͢J - avatar
+ 2
It's very simple in python..... print(1**20)
15th Mar 2020, 2:18 PM
Shubhankar Bajpai
Shubhankar Bajpai - avatar
+ 2
for x in range(20): x=x**2 print(x)
16th Mar 2020, 5:53 AM
Teja
Teja - avatar
+ 2
It's x = 1 ;)
16th Mar 2020, 11:18 AM
Michał Kucharczyk
Michał Kucharczyk - avatar
+ 1
Thank you so much
14th Mar 2020, 1:39 PM
Tharusha dilshan
Tharusha dilshan - avatar
+ 1
In c#??
14th Mar 2020, 1:40 PM
Tharusha dilshan
Tharusha dilshan - avatar
+ 1
♥️
14th Mar 2020, 1:42 PM
Tharusha dilshan
Tharusha dilshan - avatar
+ 1
Thanks
14th Mar 2020, 1:43 PM
Tharusha dilshan
Tharusha dilshan - avatar
+ 1
Martin Taylor My dear friend go on description also. "How can i get the power of number 1to 20 in row in c# or python" See here - the power of number 1 to 20. I don't know what power. I just gave him example. If he got my point then he can do. Let leave on him.
14th Mar 2020, 5:56 PM
A͢J
A͢J - avatar