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
edmond@DESKTOP-M2BC2LH
Fórum ➡ Separating the Fields Inside a String ♦
default branch name
Intuit // C# // listing_4.2 (Converting / Parsing)
Welcome
Chris Kasongo Lazarius Mukengeshayi "Entelect BlackJack 21"
Count vowels in a string
Hareket
ConvertDotNetGuidToOracleGuid
arrays bidimencionales y tridimencionales