Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LiczbaCalkowita
- {
- public int x {get;set;}
- public LiczbaCalkowita()
- {}
- public void Pobierz()
- {
- Console.WriteLine("Podaj liczbe");
- x = int.Parse(Console.ReadLine());
- }
- public void Wyswietl(int x)
- {
- Console.WriteLine();
- }
- }
- //////////to dajesz w main
- LiczbaCalkowita lp = new LiczbaCalkowita();
- lp.Pobierz()
- lp.Wyswietl(lp.x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement