Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prism 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 lma = 0.0, lme = 0.0, h = 0.0, r = 0.0; static void introducir () { Console.WriteLine("introduzca primer lado: "); lma=double.Parse(Console.ReadLine()); Console.WriteLine("Introduzca el segundo lado: "); lme=double.Parse(Console.ReadLine()); Console.WriteLine("Introduzca la altura: "); h=double.Parse(Console.ReadLine()); } static void calcular () { r =(lma*lme)*h; } static void validar () { if (r>100) { Console.WriteLine("Tu resultado es: "+ r.ToString()); } else { Console.WriteLine("Error, Intente con valores màs grandes."); } } public static void Main(string[] args) { introducir (); calcular (); validar (); } } }
run
|
edit
|
history
|
help
0
salary
Properties in Interfaces
sdfnmj,k, mnfdc
LINQ-Group BY
enum flag comparison
Hello
11.10
Test Stopwatch
Code_only_sin_xm
עעעע