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 Vezba_6
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Unesi broj redova");
- var brRedova = System.Convert.ToInt32(Console.ReadLine());
- var brojac = 1;
- for (var i = 1; i <= brRedova; i++)
- {
- for (var j = 1; j <= i; j++)
- {
- Console.Write("{0} ", brojac);
- brojac++;
- }
- Console.WriteLine();
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement