- 1
how to make each alphabet on string has space before the other alphabet
for example input=code output= c o d e but the input code have to use= scanf(%s, input) so i can only use one %s
1 Odpowiedź
+ 1
#include <iostream>
using namespace std;
int main() {
string s;
cin>>s;
for(int i=0; i<s.size(); i++)
cout<<s[i]<<" ";
cout<<endl;
return 0;
}