Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Homework2_7
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string name;
- string character;
- string charactersNearName;
- string stringCharacters = "";
- Console.Write( "Введите ваше имя: ");
- name = Console.ReadLine();
- Console.Write("Введите символ: ");
- character = Console.ReadLine();
- charactersNearName = character + name + character;
- for (int i = 0; i < charactersNearName.Length; i++)
- {
- stringCharacters += character;
- }
- Console.WriteLine($"{stringCharacters} \n{charactersNearName} \n{stringCharacters}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement