Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace dd
- {
- class Program
- {
- static void Main(string[] args)
- {
- //programma che che faccia
- Console.WriteLine("Hey,inserisci il numero di alunni");
- int alunni = Convert.ToInt32(Console.ReadLine());
- float somma,media, max, min;
- float[] voto = new float[alunni];
- string[] nome = new string[alunni];
- for ( int i = 0; i < alunni; i++ )
- {
- Console.WriteLine("inserisci il voto");
- voto[i] = int.Parse(Console.ReadLine());
- Console.WriteLine("inserisci a chi appartiene");
- nome [i] = Console.ReadLine();
- Console.WriteLine($"Hai inserito il voto {voto[i]} di {nome[i]}");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement