Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
331 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;

int main()
{
	setlocale(LC_ALL, "Russian");
    int n1;
	int n2;
	int n3;
	int n4;
	int n5;
	double c;

	
	
	cin >>n1 >> n2 >> n3 >> n4 >> n5 ;
	c = (n1 + n2 + n3 + n4 + n5 )/ static_cast<double>(5);
	
	cout << "средняя оценка: "<< c;
}