Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public class LiczbaCalkowita
  2. {
  3. public int x {get;set;}
  4.  
  5. public LiczbaCalkowita()
  6. {}
  7. public void Pobierz()
  8. {
  9. Console.WriteLine("Podaj liczbe");
  10. x = int.Parse(Console.ReadLine());
  11. }
  12. public void Wyswietl(int x)
  13. {
  14. Console.WriteLine();
  15. }
  16. }
  17.  
  18. //////////to dajesz w main
  19.  
  20. LiczbaCalkowita lp = new LiczbaCalkowita();
  21.  
  22. lp.Pobierz()
  23. lp.Wyswietl(lp.x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement