Answer to Question #341230 in C++ for Zee

Question #341230

Using function arrange small letters before capital letters using cstring

1
Expert's answer
2022-05-15T16:59:25-0400


#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main() {
  string s;
  getline(cin,s);
  sort(s.begin(),s.end());
  cout<<s<<endl;
  return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS