Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Task_1_3_6
- {
- class Program
- {
- static float SomeMul(float x, float y)
- {
- return x * y;
- }
- static float SomeMul(float x, float y, float z)
- {
- return x * y * z;
- }
- static void Main(string[] args)
- {
- /* Сделать перегрузку метода SomeMul для умножения параметров типа float.*/
- Console.WriteLine("Первая перегрузка равна {0}", SomeMul(10,3));
- Console.WriteLine("Вторая перегрузка равна {0}", SomeMul(10,4,5));
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement