Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Pentagon`s area
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { static double p = 0.0, b = 0.0, a = 0.0; static void input () { Console.WriteLine("Put the perimeter here "); p=double.Parse(Console.ReadLine()); Console.WriteLine("Put the apothem here "); b=double.Parse(Console.ReadLine()); } static void calculate () { a=((p*b)/2); } static void show () { Console.WriteLine("Your result is: "+a.ToString()); } public static void Main(string[] args) { input (); calculate (); show (); } } }
run
|
edit
|
history
|
help
0
Builder Design Pattern
Inheritance Fallback
DijkstraAlgo
Interface with same methods
Get year quarter from date
GP-TIME
anyonymous type pass to method in c#
Binary search tree - Post-order Traversal
SumOfEvens
Vajdalinky