Untitled

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

int main() {
	setlocale(LC_ALL, "Russian");
	int a, b, c, d;
	cin >> a >> b >> c;
	cin >> d;
	if (d == 1) cout << a;
	if (d == 2) cout << b;
	if (d == 3) cout << c;
}
Leave a Comment