Advertisement
k0mZ

Untitled

May 18th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Jovan
  8. {
  9. class povrsina
  10. {
  11. public double a;
  12. public double pk ;
  13. public double pkruga;
  14. public double ro;
  15.  
  16. public int povrsinasqr(double a) {
  17. pk = Math.Pow(a,2);
  18. int pki = Convert.ToInt32(pk);
  19. return pki;
  20.  
  21. }
  22.  
  23. public double povrsinaopkrug(double a) {
  24. ro = (a * Math.Sqrt(2))/2;
  25. pkruga = Math.Pow(ro,2) * Math.PI;
  26.  
  27. return pkruga;
  28.  
  29. }
  30.  
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement