Fox_McCloud77

CSLight_HW_6

Feb 10th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CSLight_HW_6
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.OutputEncoding = Encoding.UTF8;
  14.  
  15.             int age;
  16.             string name;
  17.             string zodiacSign;
  18.             string job;
  19.  
  20.             Console.Write("Как вас зовут: ");
  21.             name = Console.ReadLine();
  22.             Console.Write("Сколько вам лет: ");
  23.             age = Convert.ToInt32(Console.ReadLine());
  24.             Console.Write("Какой ваш знак зодиака: ");
  25.             zodiacSign = Console.ReadLine();
  26.             Console.Write("Где вы работаете: ");
  27.             job = Console.ReadLine();
  28.  
  29.             Console.Write($"Вас зовут {name}, вам {age}, вы {zodiacSign} и работаете {job}.");
  30.             Console.ReadKey();
  31.         }
  32.     }
  33. }
Add Comment
Please, Sign In to add comment