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;
- namespace Esercizio14
- {
- class Program
- {
- public static void Maiuscolo(string[] calcio)
- {
- for (int b = 0; b >= dim; b++)
- {
- Console.WriteLine("i nomi dei calcatori in maiuscolo {0}",calcio[b].ToUpper());
- Console.ReadLine();
- }
- }
- static int dim=0;
- static void Main(string[] args)
- {
- string dato;
- Console.WriteLine("quanti calciatori sono");
- dim=int.Parse(Console.ReadLine());
- string[] calcaitori = new string[dim];
- for (int a = 0; a != dim; a++)
- {
- Console.WriteLine("nome calciatore numero {0}",a+1);
- dato = Console.ReadLine();
- calcaitori[a] = Convert.ToString(dato);
- }
- for (int c = 0; c != dim; c++)
- {
- Console.WriteLine("i calciatori sono {0}",calcaitori[c]);
- }
- Console.ReadLine();
- Maiuscolo(calciatori);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement