← Back to List

11721번: 열 개씩 끊어 출력하기 ↗

Solutions

C++14
176 B | 176 chars
#include <iostream>
#include <string>
using namespace std;
string a;
int main()
{
	cin>>a;
	for(int x=0; x<a.length(); x++)
	{
		if(x!=0&&x%10==0)cout<<endl;
		cout<<a[x];
	}
}