Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
274 B
0
Indexable
Never
#include <iostream>

int main()
{
    int floars[5] = {};
    int i, a, count = 0;

    for (i = 0; i < 5; i++) {
        std::cin >> a;
        floars[i] = a * 3;
    }
    for (i = 0; i < 5; i++) {
        count += floars[i];
    }
    std::cout << count;
}
Leave a Comment