Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Collections.Specialized;
- using System.Text;
- using System.Threading.Tasks;
- using System.Net;
- using System.Threading;
- namespace IMJunior
- {
- class Program
- {
- static void Main(string[] args)
- {
- int myInt = SomeMul(10,5,7,19);
- Console.WriteLine(myInt);
- }
- public static int SomeMul(params int[] numbers)
- {
- int result = 1;
- for (int i = 0; i < numbers.Length; i++)
- {
- result *= numbers[i];
- }
- return result;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement