Advertisement
Guest User

Untitled

a guest
Jul 29th, 2011
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Esercizio14
  7. {
  8. class Program
  9. {
  10. public static void Maiuscolo(string[] calcio)
  11. {
  12. for (int b = 0; b >= dim; b++)
  13. {
  14. Console.WriteLine("i nomi dei calcatori in maiuscolo {0}",calcio[b].ToUpper());
  15. Console.ReadLine();
  16. }
  17. }
  18. static int dim=0;
  19. static void Main(string[] args)
  20. {
  21. string dato;
  22. Console.WriteLine("quanti calciatori sono");
  23. dim=int.Parse(Console.ReadLine());
  24. string[] calcaitori = new string[dim];
  25.  
  26.  
  27. for (int a = 0; a != dim; a++)
  28. {
  29. Console.WriteLine("nome calciatore numero {0}",a+1);
  30. dato = Console.ReadLine();
  31. calcaitori[a] = Convert.ToString(dato);
  32. }
  33. for (int c = 0; c != dim; c++)
  34. {
  35. Console.WriteLine("i calciatori sono {0}",calcaitori[c]);
  36. }
  37. Console.ReadLine();
  38. Maiuscolo(calciatori);
  39.  
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement