Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /*напишете програма която реагира според вкарания от потребителя вход за времето(ако е студено тези дрехи, ако е топло тези дрехи, ако е дъждовно тези дрехи)*/
- int main()
- {
- string TimeInside;
- cin >> TimeInside;
- string Shirt;
- string Jeans;
- string Foots;
- if(TimeInside == "Sunny")
- {
- Shirt = "T-shirt";
- Jeans = "Small Shorty";
- Foots = "Sandals";
- cout << "I have " << Shirt << " on my body and "
- << Jeans << " in my legs, and " << Foots << " on my foots!" << endl;
- }
- else if(TimeInside == "Cold")
- {
- Shirt = "Long Shirt";
- Jeans = "Quilted Jeans";
- Foots = "Boots";
- cout << "I have " << Shirt << " on my body and "
- << Jeans << " in my legs, and " << Foots << " on my foots!" << endl;
- }
- else if(TimeInside == "Rainy")
- {
- Shirt = "Sweatshirt";
- Jeans = "Ancung";
- Foots = "Maratonki";
- cout << "I have " << Shirt << " on my body and "
- << Jeans << " in my legs, and " << Foots << " on my foots!" << endl;
- }
- else
- {
- cout << "Wrong input!" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement