Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Quarter Hour String Generator
Intuit // C# // listing_4.4 (StreamReader // input.txt)
Prime Number
Numeric to graphical output using string extension method
min tree
Full text search using Linqdb
Abstract Class
BRHOOM 111
Get Error Message Based on String
Code_only_sin_xm
stackse - search stackoverflow differently
Please log in to post a comment.