Untitled
raw download clone
CPP
views 40
,
size 286 b
#include <iostream>
using namespace std;

struct nota
{
    char nume[51];
    float a , b , c;
}e;

int main()
{
    cin.get(e.nume,51);
    cin.get();
    cin >> e.a >> e.b >> e.c;

    cout << endl << e.nume << endl;
    cout << (e.a+e.b+e.c)/3;

    return 0;
}
close fullscreen
Login or Register to edit or fork this paste. It's free.