Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Math;
- class Program
- {
- delegate double MyCos(double x);
- static void Main(string[] args)
- {
- MyCos cos = new MyCos(Math.Cos);
- Console.WriteLine(cos(Math.PI));
- }
- }
- Imports System.Math
- Module Module1
- Sub Main()
- Console.WriteLine(Cos(PI))
- End Sub
- End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement