Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
code
//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) { //Your code goes here int[] a = {1, 2, 3, 4, 5}; static int computeWeightedSum(int[ ] a){ int SommePaire =0; int SommeImpaire = 0; for (int i = 0; i < a.Length; i++){ if (a[i]%2 ==0 ) { SommePaire += a[i]; }else{ SommeImpaire += a[i]; } } return (2 * SommePaire+ 3 * SommeImpaire); } } }
run
|
edit
|
history
|
help
0
SELECT YEAR('2019-08-15 01:02:03')+10
where index
Url Encode
schach 1 sem
first index of a substring in a given string
іфи
莊王嫩
first test
Heap sort
cte-like constructs in C#