#include<iostream> #include<string> using namespace std; main() { string s; int i,count=0; cout<<"enter your string\n"; cin>>s; for(i=0;s[i];i++) { count++; } cout<<count<<endl; } op : enter your string prawin 6
Aliquam molestie ligula vitae nunc lobortis dictum varius tellus porttitor. Suspendisse vehicula diam a ligula malesuada a pellentesque turpis facilisis. Vestibulum a urna elit. Nulla bibendum dolor suscipit tortor euismod eu laoreet odio facilisis.
0 comments: