rukvir

HW 1_3

Feb 3rd, 2025
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.22 KB | None | 0 0
  1. using System;
  2.  
  3. namespace HW_2025
  4. {
  5.     internal class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string nameUser;
  10.             string ageUser;
  11.             string genderUser;
  12.             string zodiacSignUser;
  13.             string workUser;
  14.  
  15.             Console.WriteLine("Добрый день! Как вас зовут?");
  16.             nameUser = Console.ReadLine();
  17.             Console.WriteLine("Сколько Вам лет?");
  18.             ageUser = Console.ReadLine();
  19.             Console.WriteLine("Какого вы пола? Муж/Жен");
  20.             genderUser = Console.ReadLine();
  21.             Console.WriteLine("Кто вы по знаку зодиака?");
  22.             zodiacSignUser = Console.ReadLine();
  23.             Console.WriteLine("Где вы работаете?");
  24.             workUser = Console.ReadLine();
  25.  
  26.             Console.WriteLine($"\nВас зовут - {nameUser};\n" +
  27.                 $"Вам - {ageUser} лет;\n" +
  28.                 $"Ваш пол - {genderUser};\n" +
  29.                 $"Ваш знак зодиакак - {zodiacSignUser};\n" +
  30.                 $"Вы работаете - {workUser}.");
  31.  
  32.             Console.ReadKey();
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment