using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Grishkevich4 { static void Main(string[] args) { double sr; double x,v; int q; v = 0; //sr = 0; int w; // sr = 0; // q = 0; w = 0; x = 0; int[] tab = new int[100]; double n; n = 1; string m; Console.Write("Podaj element menu: \n\n"); Console.Write("n - ilość ocen\n"); Console.Write("po - podaj oceny\n"); Console.Write("do - drukuj oceny\n"); Console.Write("sr - drukuj srednia\n"); Console.Write("v - variancja\n"); Console.Write("d - dominata\n"); Console.Write("k- konczy program;\n"); Console.Write("w - drukuj wynik\n"); Console.Write("l - podaj liczbę\n"); Console.Write("d - drukuj liczbę\n"); Console.Write("\n"); do { Console.Write("\nMenu: "); m = Console.ReadLine(); switch (m) { case "po": Console.WriteLine("Podaj oceny: "); for (int i = 0; i < n; i++) { Console.Write($"{i + 1}="); tab[i] = Convert.ToInt32(Console.ReadLine()); } break; case "do": for (int i = 0; i < n; i++) Console.WriteLine($"{i + 1} ocena={tab[i]}"); break; case "sr": q = 0; sr = 0.0; while (q