Created
July 25, 2015 07:09
-
-
Save MladenMladenov/72a07fb3b6b8ea94e8a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class PrintCompanyInfo | |
{ | |
static void Main() | |
{ | |
Console.Write("Enter Company Name:"); | |
string coName = Console.ReadLine(); | |
Console.Write("Enter Company Address:"); | |
string coAdress = Console.ReadLine(); | |
Console.Write("Enter Company Phone Number:"); | |
string coPhone = Console.ReadLine(); | |
Console.Write("Enter Company Fax Number:"); | |
string coFax = Console.ReadLine(); | |
if(coFax == "") | |
{ | |
coFax = "(no fax)"; | |
} | |
Console.Write("Enter Company Website:"); | |
string webSite = Console.ReadLine(); | |
Console.Write("Enter Manager First Name:"); | |
string firstName = Console.ReadLine(); | |
Console.Write("Enter Manager Last Name:"); | |
string lastName = Console.ReadLine(); | |
Console.Write("Enter Manager age:"); | |
string manAge = Console.ReadLine(); | |
Console.Write("Enter Manager Phone:"); | |
string manPhone = Console.ReadLine(); | |
Console.WriteLine("___________________________"); | |
Console.WriteLine(" ||COMPANY INFO|| "); | |
Console.WriteLine("___________________________"); | |
Console.WriteLine("Company Name:{0}",coName); | |
Console.WriteLine("Company Address:{0}",coAdress); | |
Console.WriteLine("Company phone number:{0}", coPhone); | |
Console.WriteLine("Company Fax numer:{0}", coFax); | |
Console.WriteLine("Company Web site:{0}", webSite); | |
Console.WriteLine("Manager:{0},{1},({2},{3})", firstName, lastName, manAge, manPhone); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment