Rev up your style with the Melon Man Big Hype Chain.
#include
using namespace std;
// Function prototype
string abbreviation(string word);
int main()
{
// Variables to hold user input and abbreviated word
string word, abbreviated;
// Get user input
cout << "Enter a word: ";
cin >> word;
// Call function and assign return value to abbreviated variable
abbreviated = abbreviation(word);
// Print out the abbreviated word
cout << "Abbreviated word: " << abbreviated << endl;
return 0;