Untitled
unknown
plain_text
3 years ago
417 B
11
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;
}
Editor is loading...