Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <cstdlib>
- using namespace System;
- int main()
- {
- int n = 10;
- double result;
- for (int i = 1; i<=n; i++)
- {
- Console::Write(L"Введите "+i+"-ю оценку по математике: ");
- int x = Convert::ToByte(Console::ReadLine());
- result +=x;
- }
- Console::WriteLine(L"Средний бал по математике: "+result/n);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement