Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main () {
- int ed, i=0;
- string fullname;
- system("cls");
- cout << "Problem 3 - Program Reverse\n";
- cout << "-----------------------------\n";
- cout << "Enter Full Name: ";
- getline (cin,fullname);
- cout << "Your Full Name In Reverse: ";
- ed = fullname.length();
- while (ed!=i){
- ed--;
- cout << fullname[ed];
- }
- cout << "\n";
- return 0;
- }
Add Comment
Please, Sign In to add comment