View Code of Problem 77

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	getline(cin,s);
	int n,i;
	n=s.length();
	for(i=0;i<n-1;i++)
	cout<<s[i]<<" ";
	cout<<s[n-1];
}

Double click to view unformatted code.


Back to problem 77