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 Jovan
- {
- class povrsina
- {
- public double a;
- public double pk ;
- public double pkruga;
- public double ro;
- public int povrsinasqr(double a) {
- pk = Math.Pow(a,2);
- int pki = Convert.ToInt32(pk);
- return pki;
- }
- public double povrsinaopkrug(double a) {
- ro = (a * Math.Sqrt(2))/2;
- pkruga = Math.Pow(ro,2) * Math.PI;
- return pkruga;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement