+ 1

Capitalize first letter of each word

#include<bits/stdc++.h> using namespace std; int main( ) { char a[50]; cout<<"enter a statement"; cin.getline(a,50); int i=0; while(a) { if(a[i]==' '||a[i]=='\t') { if(a[i+1]>=97&&a[i+1]<=122) a[i+1]=a[i+1]-32; } }return 0; }

28th Nov 2017, 4:13 AM
Shanmukhi puchakayala
Shanmukhi puchakayala - avatar
1 Réponse
+ 2
Well this one does first and last. https://code.sololearn.com/cVOlr51vQnjC/?ref=app
28th Nov 2017, 5:22 AM
Manual
Manual - avatar