Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
more or less
//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 a = 0.0, b = 0.0, c = 0.0; static void input () { Console.WriteLine("Introduzca su primer valor"); a=double.Parse(Console.ReadLine()); Console.WriteLine("Introduzca su segundo valor"); b=double.Parse(Console.ReadLine()); } static void calculate () { c=(a+b); } static void validate () { if ((a>0)||(b>0)) { Console.WriteLine("Tu resultado es: "+c.ToString()); } else { Console.WriteLine(a.ToString()+" y "+b.ToString()+" son nùmeros negativos"); } } public static void Main(string[] args) { input (); calculate (); validate (); } } }
run
|
edit
|
history
|
help
0
Fórum regex only alphanumerics (except underscore)
Selection Sort
123
Create HardwareConfigs
7.1. Asynchrony: the new approach
q3 .net
2.10.4
asxsadxsdf
Non-User input - Random Controlled - Guessing Game
lilnq 1