Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _07._Train_The_Trainers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int judgesCount = int.Parse(Console.ReadLine());
- double avarageAll = 0;
- int count = 0;
- while (true)
- {
- string presentation = Console.ReadLine();
- if (presentation == "Finish")
- {
- Console.WriteLine($"Student's final assessment is {avarageAll / count:f2}.");
- break;
- }
- double avarageRaiting = 0;
- for (int i = 0; i < judgesCount; i++)
- {
- double evaluation = double.Parse(Console.ReadLine());
- count++;
- avarageAll += evaluation;
- avarageRaiting += evaluation;
- }
- Console.WriteLine($"{presentation} - {avarageRaiting/judgesCount:f2}.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement