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
Rextester
ö2
Copy_BubbleSort
ejemplo c# 2
Enumeration
Project Euler Problem 7
Home work3 finding Min and Max (to theGit)
sdfrgyhjuiku7y6t5rf
Creating async methods in C# prior to version 5.0
Tarkov Time