Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
6
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) 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[,] array= new int[4,4]; int k =0; int s=0; Random ran = new Random(); for(int i=0; i<4; i++){ for(int j=0; j<4; j++) { array[i, j]=ran.Next(-15, 15); if(array[i,j]>0) k++; s=s+(array[i,j]);} } Console.Write("Sum of mumbers "+ s +" :"); Console.Write(k+" "+ "NUMBER:"); for (int i=0; i<4; i++) { for (int j=0; j<4; j++) { Console.Write("{0}\t", array[i, j]);}} Console.WriteLine(); } } }
run
|
edit
|
history
|
help
0
frgthyji8u7ytgfd
Dan's Dice
Int to 4 bytes
Math 10.93 added fracOp
Vajdalinky
,
3
Exemplu OOP inventar
asxasxdf
Ordinalator