Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main() {
- std::cout << "Hi! Do you want to play with me 7 =)" << std::endl;
- std::string n;
- std::cin >> n;
- int l;
- while (n.find("goodbye") || n.find("exit") || n.find("bye")) {
- if (n.find("Yes") || n.find("yes") || n.find("da")) {
- std::cout << "Well, what did he do this time?" << std::endl;
- std::cout << "How much do you estimate his mistake?" << std::endl;
- std::cin >> l;
- if (l > 8)
- {
- std::cout << "It's horrible" << std::endl;
- } else if (l <= 8 && l > 5)
- {
- std::cout << "He is good boy,maybe he can fix it" << std::endl;
- }
- } else if (l > 0 && l <= 5)
- {
- std::cout << "Sorry, we're just getting started." << std::endl;
- } else
- {
- std::cout << "It is string or negative number" << std::endl;
- system("pause");
- };
- std::cout << "Write number again" << std::endl;
- std::cin >> n;
- system("pause");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement