Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Jak się nazywasz?"); //Wypisuje na ekran tekst Jak się nazywasz
- string name = Console.ReadLine(); //Tworzy zmienną name i przypisuje do niej wczytaną z konsoli linię tekstu
- Console.WriteLine("Ile masz lat?");
- string wiek = Console.ReadLine();
- Console.WriteLine("Nazywasz się " + name + " i masz " + wiek + " lat"); //Wypisuje do konsoli tekst Nazywasz się ImięPodaneWKonsoli
- Console.ReadKey(); //Standardowo wczytuje znak z konsoli, aby nie zamknęła się ona od razu po wypisaniu odpowiedzi
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement