Advertisement
STANAANDREY

prj1

Nov 11th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8.  
  9. namespace ConsoleApp1CS
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             int x=0;
  16.             Console.BackgroundColor = ConsoleColor.DarkMagenta;
  17.             Console.Clear();
  18.             Console.ForegroundColor = ConsoleColor.DarkCyan;
  19.             Console.WriteLine("nume: ");
  20.             string n1 = Console.ReadLine();
  21.             Console.WriteLine("prenume: ");
  22.             string n2 = Console.ReadLine();
  23.             Console.WriteLine("varsta: ");
  24.             x = Convert.ToInt32(Console.ReadLine());
  25.             Console.WriteLine("sall sunt {0} {1}  ",n1,n2+" am "+x+" ani.");
  26.            
  27.        
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement