Advertisement
AlexeySudakov

Untitled

Jul 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ///1.3.6.2
  2. using System;
  3.  
  4. namespace homework
  5. {
  6. class Program
  7. {
  8. public static void Main(string[] args)
  9. {
  10. Console.WriteLine("Hello World!");
  11. SomeMul(1,2,3,4,5,6,7,8);
  12. Console.Write("Press any key to continue . . . ");
  13. Console.ReadKey(true);
  14. }
  15.  
  16. public static void SomeMul (params int[] numbers)
  17. {
  18. int rezultat = 1;
  19. for (int i = 0; i<numbers.Length; i++)
  20. {
  21. rezultat *= numbers[i];
  22. }
  23. Console.WriteLine(rezultat);
  24.  
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement