Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///1.3.6.2
- using System;
- namespace homework
- {
- class Program
- {
- public static void Main(string[] args)
- {
- Console.WriteLine("Hello World!");
- SomeMul(1,2,3,4,5,6,7,8);
- Console.Write("Press any key to continue . . . ");
- Console.ReadKey(true);
- }
- public static void SomeMul (params int[] numbers)
- {
- int rezultat = 1;
- for (int i = 0; i<numbers.Length; i++)
- {
- rezultat *= numbers[i];
- }
- Console.WriteLine(rezultat);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement