Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Dynamic;
- using System.Linq;
- using System.Runtime.Serialization;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSLight
- {
- class Program
- {
- static void Main(string[] args)
- {
- string name;
- string percentSymbol = "%";
- int numberOfLetters;
- Console.Write("Ведите ваше имя:");
- name = Console.ReadLine();
- for(int i =0; i < (name.Length + 2); i++ )
- {
- Console.Write(percentSymbol);
- }
- Console.WriteLine();
- Console.Write($"{percentSymbol}{name}{percentSymbol}");
- Console.WriteLine();
- for (int i = 0; i < (name.Length + 2); i++)
- {
- Console.Write(percentSymbol);
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment