Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Hello-Heath-World
Lesson 1.2 Part II
Convert string to unicode representation
hay
code
Binary Search Tree
Everyone can sen ,only me can edi
2.2 gz
Get missed element in integer collection
rd
Please log in to post a comment.