Advertisement
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 _00_test_1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- for (int i = 1; i <= n; i++)
- {
- Console.WriteLine("{0}{1}", new string(' ', n - i), new string('s', i).Replace("s", "* "));
- }
- for (int i = 1; i <= n - 1; i++)
- {
- Console.WriteLine("{0}{1}", new string(' ', i), new string('s', n - i).Replace("s", "* "));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement