Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.IO;
- using System;
- class Program
- {
- static void Main()
- {
- int val = 5;
- int i, j;
- for (i = 1; i <= val; i++) {
- for (j = 1; j <= i; j++) {
- Console.Write(j);
- }
- for (j = j - 2; j >= 1; j--) {
- Console.Write(j);
- }
- Console.WriteLine("");
- }
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement