Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- int main(int argc, const char * argv[]) {
- std::string name;
- std::cin >> name;
- name = name.substr(0, name.length() - 1);
- std::cout << name + ", " + name + " bo " + "B" + name.substr(1, name.length())
- << std::endl << "Bonana fanna fo F" + name.substr(1, name.length()) + ","
- << std::endl << "Fee fy mo M" + name.substr(1, name.length()) + ","
- << std::endl << name + "!" << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement