Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
217 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int m1, m2, m3, m4, m5;
    float avgMark;
    cin >> m1 >> m2 >> m3 >> m4 >> m5;
    avgMark = (m1 + m2 + m3 + m4 + m5) / 5.0;
    cout << avgMark;
}