SHARE
TWEET

Untitled

a guest Nov 17th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int[][] tab = new int[10][];
  2.             int a = 0;
  3.             int b = 1;
  4.             for (int i = 0; i < 10; ++i)
  5.             {
  6.                 tab[i] = new int[b];
  7.                 for (int j = 0; j < tab[i].Length; ++j)
  8.                 {
  9.                     tab[i][j] = tab[i].Length - j;
  10.                 }
  11.            
  12.             int c = a + b;
  13.             a = b;
  14.             b = c;
  15.         }
  16.             for (int i = 0; i < 10; ++i)
  17.             {
  18.                 for (int j = 0; j < tab[i].Length; j++)
  19.                 {
  20.                     Console.Write(tab[i][j]);
  21.                     Console.Write(", ");
  22.                 }
  23.                 Console.WriteLine("");
  24.  
  25.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top