Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06._Rhombus_of_Stars
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int parameters = int.Parse(Console.ReadLine());
- for (int row = 1; row <= parameters; row++)
- {
- for (int n = 1; n <= parameters; n++)
- {
- Console.Write(" ");
- }
- Console.Write("*");
- for (int n = 1; n < row; n++)
- {
- Console.Write(" *");
- }
- Console.WriteLine();
- }
- int startt = parameters - 1;
- for (int row = startt; row > 0; row--)
- {
- for (int i = 1; i <= parameters; i++)
- {
- Console.Write(" ");
- }
- Console.Write("*");
- for (int i = 1; i < row; i++)
- {
- Console.Write(" *");
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement