Untitled
unknown
c_cpp
2 years ago
331 B
4
Indexable
#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; }
Editor is loading...