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