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