turbo
Hong Kong
#include <iostream>
#include <string>

int main() {
std::string car;

std::cout << "What's your dream car? ";
std::getline(std::cin, car);

if (car == "Nissan Skyline")
std::cout << "Legend. You clearly have taste.\n";
else if (car == "Toyota")
std::cout << "Respect. It'll outlive us all.\n";
else
std::cout << car << "? Bold choice, my friend.\n";

return 0;
#include <iostream>
#include <string>

int main() {
std::string car;

std::cout << "What's your dream car? ";
std::getline(std::cin, car);

if (car == "Nissan Skyline")
std::cout << "Legend. You clearly have taste.\n";
else if (car == "Toyota")
std::cout << "Respect. It'll outlive us all.\n";
else
std::cout << car << "? Bold choice, my friend.\n";

return 0;
Illustrationsfremvisning
burnin...
Kommentarer
wezzuh 7. apr. kl. 10:40 
chill big man
RoundBack 2. okt. 2024 kl. 14:22 
wlyed ybes
N4Z 17. mar. 2018 kl. 5:09 
+REP