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
,
const
Delegaty
project euler 13, C#
Fórum ➡ Prime numbers implemented using LINQ statements AND using FOR loop ♦
Watch Jurassic World Dominion Online Free
Print 1 to 100 without using loop
Binary search, IComparer, in lambda expressions style
asxs sxsd
last ie