Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
365 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int  a, b, n,c;
    cin >> a >> b >> c;
    cin >> n;
    switch (n) {
    case 1: {
        cout << a;
        break;
    }
    case 2: {
        cout << b;
        break;
    }
    case 3: {
        cout << c;
        break;
    }
    default: 
        cout << "takogo net";
    }
}
Leave a Comment