Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
417 B
2
Indexable
#include <iostream>

using namespace std;

int main()
{
    int x, y, z;
    cout << "Introduceti numarul de capre: ";
    cin >> x;
    cout << "Introduceti numarul de gaini: ";
    cin >> y;
    cout << "Introduceti numarul de oi: ";
    cin >> z;

    int total_picioare = 4 * x + 2 * y + 4 * z;
    cout << "Totalul de picioare al animalelor este: " << total_picioare << endl;

    return 0;
}