Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace homeWorkPasswordProgramm
- {
- 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(frame);
- Console.WriteLine(wordFramed);
- Console.WriteLine(frame);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement