Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. using System.Math;
  2.  
  3. class Program
  4. {
  5. delegate double MyCos(double x);
  6. static void Main(string[] args)
  7. {
  8. MyCos cos = new MyCos(Math.Cos);
  9. Console.WriteLine(cos(Math.PI));
  10. }
  11. }
  12.  
  13. Imports System.Math
  14. Module Module1
  15. Sub Main()
  16. Console.WriteLine(Cos(PI))
  17. End Sub
  18. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement