Advertisement
yakovmonarh

Untitled

Aug 10th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. // 1.3.6.3 Сделать перегрузку метода SomeMul для умножения параметров типа float.
  2.  
  3. static float Multiply(params float[] floatParams)
  4. {
  5.     float buf = 1;
  6.     for(int i = 0; i < floatParams.Length; i++){
  7.         buf *= floatParams[i];
  8.     }
  9.     return buf;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement