Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _02.PrintCompanyInformation
- {
- class PrintCompanyInformation
- {
- static void Main()
- {
- List<string> info = new List<string>();
- info.Add("Company name: ");
- info.Add("Company address: ");
- info.Add("Phone number: ");
- info.Add("Fax number: ");
- info.Add("Web site: ");
- info.Add("Manager first name: ");
- info.Add("Manager last name: ");
- info.Add("Manager age: ");
- info.Add("Manager phone: ");
- string[] readInfo = new String[info.Count];
- for (int i = 0; i < info.Count; i++)
- {
- Console.Write(info[i]);
- readInfo[i] = Console.ReadLine();
- }
- string asterix = new String('*', Console.BufferWidth);
- Console.WriteLine(asterix);
- for (int i = 0; i < info.Count; i++)
- {
- Console.WriteLine(readInfo[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement