Advertisement
junniorrkaa

Работа со строками

Feb 22nd, 2024 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | Source Code | 0 0
  1.             string name;
  2.             int age;
  3.             string signZodiac;
  4.             string work;
  5.  
  6.             Console.Write("Введите свое имя: ");
  7.             name = Console.ReadLine();            
  8.             Console.Write("Введите свой возраст: ");
  9.             age = Convert.ToInt32(Console.ReadLine());          
  10.             Console.Write("Введите свой знак зодиака: ");
  11.             signZodiac = Console.ReadLine();            
  12.             Console.Write("Введите место, где вы работаете: ");
  13.             work = Console.ReadLine();
  14.  
  15.             Console.WriteLine($"Вас зовут {name}, вам {age}, вы {signZodiac} и работаете {work}.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement