Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
318 B
1
Indexable
Never
//23.11.2023
#include <iostream>
using namespace std;
int main()
{
    int a;
    int b;
    int c;
    cin >> a >> b >> c;
    short int y;
    cin >> y;
    if (y == 1){
        cout << a;
    }
    if (y == 2){
        cout << b;
    }
    if (y == 3) {
        cout << c;
    }
    return 0;
}
Leave a Comment