Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- internal class Program
- {
- static void Main(string[] args)
- {
- string firstName;
- string lastName;
- int age;
- Console.Write("Напишите ваше имя: ");
- firstName = Console.ReadLine();
- Console.Write("Напишите вашу фамилию: ");
- lastName = Console.ReadLine();
- Console.Write("Сколько вам лет: ");
- age = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine($"Вас завут: {firstName} {lastName}, вам {age} лет.");
- Console.ReadKey();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement