Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.39 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace ConsoleApp1
  6. {
  7.     class Program
  8.     {
  9.  
  10.         public static string surname;
  11.         public static string name;
  12.         public static string midllename;
  13.         public static string gender;
  14.         public static void Welcome() => Console.WriteLine("Добро пожаловать в электронную систему стамотологической клиники \"GreatDantist\"");
  15.         public static void GetClient()
  16.         {
  17.             Console.WriteLine("Фамилия:");
  18.             surname =  Console.ReadLine();
  19.             Console.WriteLine("Имя:");
  20.             name = Console.ReadLine();
  21.             Console.WriteLine("Отчество:");
  22.             midllename = Console.ReadLine();
  23.             Console.WriteLine("Пол:");
  24.             gender = Console.ReadLine();
  25.         }
  26.         public static void WriteClient()
  27.         {
  28.             Console.WriteLine($"Клиент : { surname } { name } {midllename} ");
  29.             Console.WriteLine($"Пол : {gender}");
  30.         }
  31.      
  32.  
  33.      
  34.        
  35.        
  36.  
  37.         static void Main(string[] args)
  38.         {
  39.             Welcome();
  40.             GetClient();
  41.             WriteClient();
  42.             GetClient();
  43.             WriteClient();
  44.             GetClient();
  45.             WriteClient();
  46.         }
  47.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement