using System.Collections.Generic;
public static void Main(string[] args)
var nb = new List<int>() { 5, 10, 15 };
var total = nb.Sum(x => x);
Console.WriteLine(total);
var a = nb[0] * 100 / total;
var b = nb[1] * 100 / total;
var c = nb[2] * 100 / total;