Advertisement
Sohila_Elshiref

stright

Dec 6th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. string s, t;
  2.     cin >> s >> t;
  3.     if (s == "computer" && t == "computer")
  4.     {
  5.         cout << "Crossover";
  6.     }
  7.     else if (s == "computer" && t == "router")
  8.     {
  9.         cout << "Crossover";
  10.     }
  11.     else if (s == "router" && t == "computer")
  12.     {
  13.         cout << "Crossover";
  14.     }
  15.     else if (s == "router" && t == "router")
  16.     {
  17.         cout << "Crossover";
  18.     }
  19.     else
  20.     {
  21.         cout << "Straight through";
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement