#include <iostream>#include <string>int main() { std::string name, age, city, college, profession, animal, petsName; std::cout << "Please input your name." << std::endl; std::getline(std::cin, name); std::cout << "Please input your age." << std::endl; std::getline(std::cin, age); std::cout << "Please input the city you're from." << std::endl; std::getline(std::cin, city); std::cout << "Please input the name of college you graduated." << std::endl; std::getline(std::cin, college); std::cout << "Please input your profession." << std::endl; std::getline(std::cin, profession); std::cout << "Please input the type of animal you have or want to have." << std::endl; std::getline(std::cin, animal); std::cout << "Please input your pet's name." << std::endl; std::getline(std::cin, petsName); std::cout << "There once was a person named " << name << " who lived in " << city << ". At the age of "<< age << ", " << name<< " went to college at " << college << ". " << name<< " graduated and went to work as a " << profession << ". Then, " << name<< " adopted a(n) " << animal << " named " << petsName << ". They both lived happily every after!" << std::endl; return 0;}
Comments