Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char qu[]="";
- cin >> qu;
- int i = 0;
- while (qu[i]!='\0'){
- cout << qu[i];
- i++;
- }
- cout << endl;
- int m;
- i = 0;
- while (qu[i] != '\0'){
- if (qu[i] == 'l'){
- m = i;
- }
- i++;
- }
- cout << "i = " << m << "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement