Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. static void Main(string[] args)
  2.         {
  3.             Console.WriteLine("Věk: ");
  4.             double vek = double.Parse(Console.ReadLine());
  5.             Console.WriteLine("Jméno: ");
  6.             string jmeno = Console.ReadLine();
  7.             Console.WriteLine("Příjmení: ");
  8.             string prijmeni = Console.ReadLine();
  9.            
  10.             pracovnik pracovnik1 = new pracovnik(jmeno, prijmeni, vek);
  11.             pracovnik1.vypis();
  12.             pracovnik1.zmenaVek();
  13.             pracovnik1.vypis();
  14.             Console.ReadKey();
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement