Guest User

Untitled

a guest
Oct 11th, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. int[,] tab = new int[10, 10];
  2.            
  3.             for(int i=0;i<tab.GetLength(0);i++)
  4.             {
  5.                 for (int j = 0; j < tab.GetLength(0); j++)
  6.                 {
  7.                     if(j==0)
  8.                     {
  9.                         tab[i, j] = i;
  10.                     }
  11.                     if (j == 1)
  12.                     {
  13.                         tab[i, j] = i * i;
  14.                     }
  15.                     else  
  16.                     {
  17.                         tab[i, j] = 0;
  18.                     }
  19.                 }
  20.             }
Advertisement
Add Comment
Please, Sign In to add comment