Advertisement
Guest User

Stachu

a guest
Oct 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. string imie, nazwisko;
  2. int wiek;
  3. double wzrost;
  4.  
  5. Console.Write("Imie:");
  6. imie = Console.ReadLine();
  7. Console.Write("Nazwisko:");
  8. nazwisko = Console.ReadLine();
  9. Console.Write("Wzrost:");
  10. wzrost = Convert.ToDouble(Console.ReadLine());
  11. Console.Write("Wiek:");
  12. wiek = Convert.ToInt16(Console.ReadLine());
  13.  
  14. int przyblizenie = Convert.ToInt32(wzrost);
  15. double plus10 = wzrost + 0.1;
  16.  
  17. Console.Clear();
  18.  
  19. Console.WriteLine("{0} {1} \nWiek : {3}\nWzrost : {2}m\nW przyblizeniu : {4}m \nPo dodaniu 10 cm : {5}m ", imie, nazwisko, wzrost, wiek,przyblizenie,plus10);
  20.  
  21.  
  22. Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement