Untitled

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

int main()
{
	int dom[5];
	int res = 0;
	int n;

	for (int i = 0; i < 5; i++) {
		cin >> n;
		dom[i] = n;
	}

	for (int i = 0; i < 5; i++) {
		res += dom[i] * 3;
	}

	cout << res;
}
Leave a Comment