Created
July 10, 2018 07:02
-
-
Save tonkatsu7/ed60ed2857fff798a8920105995fcb98 to your computer and use it in GitHub Desktop.
CoderByte challenge Time Convert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
class Main { | |
public static String TimeConvert(int num) { | |
return (num / 60) + ":" + (num % 60); | |
} | |
public static void main (String[] args) { | |
// keep this function call here | |
Scanner s = new Scanner(System.in); | |
System.out.print(TimeConvert(s.nextLine())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment