Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
examen res
//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[] a = {2, 3, 5, 7, 11}; int nombreDiv = 0; int nombreNonDiv = 0; for (int i = 0; i < a.Length; i++){ if (a[i]%2 ==0 ) { nombreDiv++; } if ( a[i]%3 ==0 ) { nombreDiv++; } if (a[i]%5 ==0 ) { nombreDiv++; } else{ nombreNonDiv++; } } if ((nombreDiv + nombreNonDiv) == a.Length) { Console.WriteLine("nombreDiv");} else{ Console.WriteLine("Hello");} } } }
run
|
edit
|
history
|
help
0
C# Dictionary with Enum Keys And Values
іфи
Fórum ➡ DataTable #1's rows that are NOT present in DataTable #2 ♦
ElaineBrown
Student Cables
30272 Example2
DijkstraAlgo
test using C#2019
C# virtual dispose
zicaC#