+ 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; }
1 Réponse
+ 2
Well this one does first and last.
https://code.sololearn.com/cVOlr51vQnjC/?ref=app