Advertisement
Guest User

Untitled

a guest
Jul 30th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Esercizio19
  7. {
  8. class Program
  9. {
  10. public static void Array(string nom)
  11. {
  12. int lungezza;
  13. lungezza = nom.Length;
  14. char[] matrice = nom.ToCharArray();
  15. matrice[0] = char.ToUpper(matrice[0]);
  16. nom=matrice.ToString();
  17. Console.WriteLine(nom);
  18. Console.ReadLine();
  19. }
  20. static void Main(string[] args)
  21. {
  22. string nome;
  23. string cognome;
  24.  
  25. Console.WriteLine("Nome");
  26. nome = Console.ReadLine();
  27. Console.WriteLine("Cognome");
  28. cognome = Console.ReadLine();
  29. Array(nome);
  30.  
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement