Skip to content

Instantly share code, notes, and snippets.

@MladenMladenov
Created July 25, 2015 07:09
Show Gist options
  • Save MladenMladenov/72a07fb3b6b8ea94e8a9 to your computer and use it in GitHub Desktop.
Save MladenMladenov/72a07fb3b6b8ea94e8a9 to your computer and use it in GitHub Desktop.
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