+ 5
[challenge] pascal triangle for powers of 11
https://www.sololearn.com/discuss/746654/?ref=app the powers of 11 can be derived from the Pascal Triangle 11**0 = 1 = first row 11**1 = 11 = second row 11**2 = 121 = third row ... 1331 14641 ... 1 5 10 10 5 1... works too but with transfer 1 5 (10 + 1) 0 5 1 1 (5+1) 1 0 5 1 161051 = 11**5 .... write a program, that gets a number and returns 11**(number) . The result should be calculated with jelp of pascal triangle
2 Antworten
+ 2
my try in python 3 :P
https://code.sololearn.com/cwEKfCCvrUR7/#
+ 1
here my example in python
https://code.sololearn.com/cf7oWFKyhNQF