//************************************** // Name: WORD BACKWARDS Version 1.0 in C++ // Description:A very simple program that will display the word given in backwards that I wrote in C++. I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work, computer tutorials and web development work kindly contact me in the following email address for further details. If you want to advertise in my website kindly contact me also in my email address also. Thank you. My email address are the following jakerpomperada@gmail.com, jakerpomperada@aol.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675. My personal website is http://www.jakerpomperada.com // By: Jake R. Pomperada // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** #include<iostream> #include<string> using namespace std; main() { string s; int x; cout << "\n\n\t\t WORD BACKWARDS Version 1.0"; cout << "\n\n\t Created By: Mr. Jake R. Pomperada, MAED-IT"; cout << "\n\n"; cout<<"Enter a word: "; getline(cin, s); x = s.length()-1; cout <<"\n\n Original Word :=> " << s; cout << "\n\n After Backwards :=> " ; while(x >= 0 ){ cout<< s[x]; x--; } cout << "\n\n"; system("pause"); }