Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Base
//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 h = 0.0, b = 0.0, a = 0.0; static void input () { Console.WriteLine("Put the height here "); h=double.Parse(Console.ReadLine()); Console.WriteLine("Put the base here "); b=double.Parse(Console.ReadLine()); } static void calculate () { a=(h*b); } static void validate () { if ((b>h) && (a>30)) { Console.WriteLine("Tu resultado es: "+ a.ToString()); } else { Console.WriteLine("Error, Intente con valores màs grandes."); } } public static void Main(string[] args) { input (); calculate (); validate (); } } }
run
|
edit
|
history
|
help
0
qw
asxsdf
Interface IEnumerable
LINQ - Inner Join
cs002
binary search tree reversal
Ok
sample
text
count occurances