Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
244 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int a, b, c, mag;

	cin >> a >> b >> c;
	cin >> mag;

	switch (mag) {
	case 1:
		cout << a;
		break;
	case 2:
		cout << b;
		break;
	case 3:
		cout << c;
		break;
	}
}
Leave a Comment