Advertisement
JohnJuly

Homework3

Oct 3rd, 2023
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.09 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 Homework3
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string name;
  14.             int age;
  15.             string zodiacSign;
  16.             string placeOfWork;
  17.  
  18.             Console.Write("Введите ваше имя: ");
  19.             name = Console.ReadLine();
  20.             Console.Write("Введите ваш возраст: ");
  21.             age = Convert.ToInt32(Console.ReadLine());
  22.             Console.Write("Введите ваш знак зодиака: ");
  23.             zodiacSign = Console.ReadLine();
  24.             Console.Write("Введите ваше место работы: ");
  25.             placeOfWork = Console.ReadLine();
  26.  
  27.             Console.WriteLine($"Ваше имя - {name}, " +
  28.                 $" ваш возраст - {age}, " +
  29.                 $" ваш знак зодиака - {zodiacSign}  " +
  30.                 $"и  ваше место работы - {placeOfWork}.");
  31.         }
  32.     }
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement