Skip to content

Instantly share code, notes, and snippets.

@keehyun2
Created September 8, 2018 01:11
Show Gist options
  • Save keehyun2/1655a9246818f89ddb58f33804b4a7c7 to your computer and use it in GitHub Desktop.
Save keehyun2/1655a9246818f89ddb58f33804b4a7c7 to your computer and use it in GitHub Desktop.
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