Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. //Rextester.Program.Main is the entry point for your code. Don't change it.
  2. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text.RegularExpressions;
  8.  
  9. namespace Rextester
  10. {
  11. public interface Geo
  12. {
  13. double arie(double x);
  14. double perimetru(double x);
  15. }
  16. public class cerc : Geo
  17. {double r;
  18. double arie(double r)
  19. {return r*r*System.Math.PI;
  20.  
  21.  
  22. }
  23. double perimetru(double r)
  24. {
  25. return 2*r*System.Math.PI;
  26. }
  27. public cerc(double x)
  28. {
  29.  
  30. r=x;
  31. }
  32.  
  33.  
  34.  
  35. }
  36.  
  37. public class Patrat : Geo
  38. {double l;
  39. double arie(double l)
  40. {
  41.  
  42.  
  43. }
  44. public class Program
  45. {
  46. public static void Main(string[] args)
  47. {
  48.  
  49. }
  50.  
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement