Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- List<int> listaA = new List<int>();
- listaA.Add(22);
- listaA.Add(4);
- Class1.Suma15(listaA);
- }
- class Class1
- {
- public static void Suma15(List<int> listaX)
- {
- int suma = 0;
- for (int x = 0; x < listaX.Count; x++)
- {
- suma += listaX[x];
- Console.WriteLine("listaX" + suma);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement