Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
401 B
1
Indexable
Never
#include <iostream>
using namespace std;
struct gnom
{
    char pol;
    int age;
    int height;
};

int main()
{
    gnom gnomich;
    cin >> gnomich.pol >> gnomich.age >> gnomich.height;
    gnom gnom2;
    cin >> gnom2.pol >> gnom2.age >> gnom2.height;
    gnom gnom3;
    cin >> gnom3.pol >> gnom3.age >> gnom3.height;
    cout << gnomich.height + gnom2.height + gnom3.height;
}