Skip to content

Instantly share code, notes, and snippets.

@tonkatsu7
Created July 10, 2018 07:02
Show Gist options
  • Save tonkatsu7/ed60ed2857fff798a8920105995fcb98 to your computer and use it in GitHub Desktop.
Save tonkatsu7/ed60ed2857fff798a8920105995fcb98 to your computer and use it in GitHub Desktop.
CoderByte challenge Time Convert
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