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 Task12
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int lengthWords;
- string name;
- string symbol;
- string wordFramed;
- string frame = "";
- Console.Write("Введите имя: ");
- name = Console.ReadLine();
- Console.Write("Введите символ для рамки: ");
- symbol = Console.ReadLine();
- wordFramed = symbol + name + symbol;
- lengthWords = wordFramed.Length;
- for (int i = 0; i < lengthWords; i++)
- {
- frame += symbol;
- }
- Console.WriteLine(stringUpDown);
- Console.WriteLine(wordFramed);
- Console.WriteLine(stringUpDown);
- }
- }
- }
Add Comment
Please, Sign In to add comment