Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
memes
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int row = 3; int col = 5; int[][] arr = new int[row][]; for(int i = 0; i < arr.Length; i++) { arr[i] = new int[col]; } int nPrevNum = 0; for(int i = 0; i < arr.Length; i++) { for(int j = 0; j < arr[i].Length; j++) { arr[i][j] = i + j + nPrevNum; nPrevNum = arr[i][j]; } } for(int i = 0; i < arr.Length; i++) { for(int j = 0; j < arr[i].Length; j++) { Console.Write(arr[i][j] + " "); } Console.WriteLine(); } } } }
run
|
edit
|
history
|
help
0
SVSVSV
jjj4
a
Jjjj
display xml : linq
List, Object, Classes, Function
IComparable extensions: Between
merge 2 sorted array
Putting In-Between Symbols
decimal to binary