Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _04._Concatenate_Data
- {
- class Program
- {
- static void Main(string[] args)
- {
- //1. име, фамилия, възраст, град
- //2. отпечатвам “You are <firstName> <lastName>, a <age>-years old person from <town>.”
- string name = Console.ReadLine(); //1 ред
- string lastName = Console.ReadLine(); //2 ред
- int age = int.Parse(Console.ReadLine()); //3 ред
- string town = Console.ReadLine(); //4 ред
- Console.WriteLine($"You are {name} {lastName}, a {age}-years old person from {town}.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment