Skip to main content

Timeline for Find i^n, given n

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Nov 24, 2014 at 14:55 history edited Rodolfo Dias CC BY-SA 3.0
Corrected mistake
Nov 24, 2014 at 14:41 history edited Rodolfo Dias CC BY-SA 3.0
Added ungolfed code.
Nov 24, 2014 at 14:17 history edited Rodolfo Dias CC BY-SA 3.0
Updated reply and added a function.
Nov 24, 2014 at 14:13 comment added Rodolfo Dias @user902383 Daaaaamn, didn't even remember that. thumbs up
Nov 24, 2014 at 14:09 comment added user902383 actually i was thinking about parsing it, so you will have int n = Integer.parseInt(a[0])
Nov 24, 2014 at 14:04 comment added Rodolfo Dias @user902383 I could always make a function, indeed. Probably will post both versions, too.
Nov 24, 2014 at 13:04 comment added user902383 you could reduced your code, if you pass it to main as argument.
Nov 24, 2014 at 10:02 history answered Rodolfo Dias CC BY-SA 3.0