Untitled
Anonymous
plain_text
11/23/2023 5:50 PM
372 B
19
Indexable
#include <iostream>
using namespace std;
int main()
{
int a, b, c,v;
cin >> a >> b >> c;
cin >> v;
switch(v){
case 1:
cout << a << endl;
break;
case 2:
cout << b << endl;
break;
case 3:
cout << c << endl;
break;
default: break;
}
}
Editor is loading...
Leave a Comment