Created
September 8, 2018 01:11
-
-
Save keehyun2/1655a9246818f89ddb58f33804b4a7c7 to your computer and use it in GitHub Desktop.
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.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
String n = sc.next(); | |
char[] arrChar = n.toCharArray(); | |
for (int i = 0; i < arrChar.length; i++) { | |
if(i != 0 && i%10 == 0) { | |
System.out.println(""); | |
} | |
System.out.print(arrChar[i]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment