We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d3ae80 commit 91c01eaCopy full SHA for 91c01ea
Sumofoddnumbers
@@ -0,0 +1,6 @@
1
+pragma solidity ^0.4.19;
2
+contract Kata {
3
+ function rowSumOddNumbers(int n) public pure returns (int) {
4
+ return n * n * n; //the sum of the nth line of odd numbers is n3
5
+ }
6
+}
0 commit comments