Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text.RegularExpressions;
- namespace valeri
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- int width = int.Parse(Console.ReadLine()); /// input = 5;
- for(int i = 0; i < (width -1) ; i++) ////// loopa she mine 4 puti za elha s viso4ina 5, zashtoto stulba she e otdelno
- {
- Console.WriteLine("{0}{1}{2}",
- new String('.', (width - 2) - i),
- new string('*', 1 + (i*2)),
- new String('.', (width - 2) - i));
- }
- Console.WriteLine("{0}*{0}", new string('.', width - 2));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement