View Code of Problem 54

#include <bits/stdc++.h>
#define N 1000
using namespace std;
int main() 
{	
	int n;
	cin>>n;
	string str=to_string(n);
	for(int i=0;i<str.size();i++)
	{
		cout<<str[i];
		if(i<str.size()-1)
			cout<<" ";
	}
}

Double click to view unformatted code.


Back to problem 54