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 Esercizio19
- {
- class Program
- {
- public static void Array(string nom)
- {
- int lungezza;
- lungezza = nom.Length;
- char[] matrice = nom.ToCharArray();
- matrice[0] = char.ToUpper(matrice[0]);
- nom=matrice.ToString();
- Console.WriteLine(nom);
- Console.ReadLine();
- }
- static void Main(string[] args)
- {
- string nome;
- string cognome;
- Console.WriteLine("Nome");
- nome = Console.ReadLine();
- Console.WriteLine("Cognome");
- cognome = Console.ReadLine();
- Array(nome);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement