Tisho_Todorov

02.PrintCompanyInformation

Oct 16th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.57 KB | None | 0 0
  1. using System;
  2.  
  3. class PrintCompanyInformation
  4. {
  5.     static void Main()
  6.     {
  7.         Console.WriteLine("Good evening may I ask you for your company ?");
  8.  
  9.         Console.Write("Company name: ");
  10.         string companyName = Console.ReadLine();
  11.  
  12.         Console.Write("Company address: ");
  13.         string companyAddress = Console.ReadLine();
  14.  
  15.         Console.Write("Phone number: ");
  16.         string companyPhoneNumber = Console.ReadLine();
  17.  
  18.         Console.Write("Fax number: ");
  19.         string faxNumber = Console.ReadLine();
  20.  
  21.         Console.Write("Web site: ");
  22.         string webSite = Console.ReadLine();
  23.  
  24.         Console.WriteLine("After all this may I ask you for your manager ?");
  25.  
  26.         Console.Write("What is the first name of your manager: ");
  27.         string managerFirstName = Console.ReadLine();
  28.  
  29.         Console.Write("What is the last name of the manager: ");
  30.         string managerLastName = Console.ReadLine();
  31.  
  32.         Console.Write("Manager age: ");
  33.         string managerAge = Console.ReadLine();
  34.  
  35.         Console.Write("Could you tell me his or her phone number: ");
  36.         string managerPhoneNumber = Console.ReadLine();
  37.  
  38.         Console.WriteLine("{0}" + "\n" + "Company address: {1}",companyName ,companyAddress);
  39.         Console.WriteLine(" Phone number: {0}" + "\n" + " Fax number: {1}" + "\n" + " Web site: {2}",companyPhoneNumber ,faxNumber ,webSite);
  40.         Console.WriteLine("Manager: {0} {1} (age: {2}, tel. {3})",managerFirstName ,managerLastName ,managerAge ,managerPhoneNumber);
  41.         Console.Title = "Created by T.Todorov";
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment