Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System.IO;
  2. using System;
  3.  
  4. class Program {
  5.     static void Main() {
  6.         int val = 5;
  7.         int i, j;
  8.         for (i = 1; i <= val; i++) {
  9.             for (j = 1; j <= i; j++) {
  10.                 Console.Write(j);
  11.             }
  12.             for (j = j - 2; j >= 1; j--) {
  13.                 Console.Write(j);
  14.             }
  15.             Console.WriteLine("");
  16.         }
  17.         Console.ReadLine();
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement