Skip to content

Commit 91c01ea

Browse files
authored
Create Sumofoddnumbers
1 parent 2d3ae80 commit 91c01ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sumofoddnumbers

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)