Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Podaj liczbe wierszy: ");
- int wiersze = int.Parse(Console.ReadLine());
- int licznik = wiersze;
- for(int i = 0; i < wiersze; i++)
- {
- for(int j = 1; j <= wiersze; j++)
- {
- if(j >= licznik) Console.Write("*");
- else Console.Write(" ");
- }
- licznik--;
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement