Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [StartCode]
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp8
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string name ;
- string sumbol;
- int indent = -1;
- Console.Write("Введите имя : ");
- name = Console.ReadLine();
- Console.Write("Введите символ :");
- sumbol = Console.ReadLine();
- for (int i = indent;i < (name.Length) ; i++)
- {
- Console.Write(sumbol);
- }
- Console.WriteLine(sumbol);
- Console.WriteLine(sumbol+name+sumbol);
- for (int i = indent; i < (name.Length); i++)
- {
- Console.Write(sumbol);
- }
- Console.WriteLine(sumbol);
- }
- }
- }
- [EndCode]
Advertisement
Add Comment
Please, Sign In to add comment