Vapio

task5

Mar 3rd, 2021 (edited)
775
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.         string name = "";
  8.         string surname = "";
  9.         uint age = 0;
  10.         string zodiacType = "";
  11.         string workPlace = "";
  12.        
  13.         Console.WriteLine("Please input your name and surname : ");
  14.         name = Console.ReadLine();
  15.         surname = Console.ReadLine();
  16.        
  17.         Console.WriteLine("Please input your age : ");
  18.         age = Convert.ToUInt32(Console.ReadLine());
  19.        
  20.         Console.WriteLine("Please input your zodiac type : ");
  21.         zodiacType = Console.ReadLine();
  22.        
  23.         Console.WriteLine("Please input your work place : ");
  24.         workPlace = Console.ReadLine();
  25.        
  26.         string resultString = String.Format("\nYou are {0} {1}.\n" +
  27.                                             "Your age is {2}.\n" +
  28.                                             "Your zodiac type is {3}.\n" +
  29.                                             "Your working place is {4}.",
  30.                                             name, surname, age, zodiacType, workPlace);    
  31.        
  32.         Console.WriteLine(resultString);
  33.     }
  34. }
RAW Paste Data