id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu 174homework > swapFirstLast
prev  |  next  |  chance

Given a 3-digit number, swap the first and last digits. None of the digits are zero.


swapFirstLast(375) → 573
swapFirstLast(119) → 911
swapFirstLast(864) → 468

...Save, Compile, Run (ctrl-enter)

int swapFirstLast(int n) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy