Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace System;
- int main(array<System::String ^> ^args)
- {
- String ^str = Console::ReadLine();
- array <String^> ^strings = str->Split(' ');
- int id;
- std::cin >> id;
- Console::WriteLine(strings[id-1]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement