Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- string name;
- char sign;
- Console.WriteLine("Please input name : ");
- name = Console.ReadLine();
- int columnsCount = name.Length + 2;
- Console.WriteLine("Please input sign : ");
- sign = Convert.ToChar(Console.ReadLine());
- for (int j = 0; j < columnsCount; ++j)
- Console.Write(sign);
- Console.WriteLine("\n"+sign+name+sign);
- for (int j = 0; j < columnsCount; ++j)
- Console.Write(sign);
- }
- }
Add Comment
Please, Sign In to add comment