Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
q3 .net
test
Saga name NLog
Plt-D v.0.9.5
BFS DFS stack vs recursive
Basma-1
SingleDelegate
C# Events and Delegates example
Polygon Util
Unary example
Please log in to post a comment.