Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Trading
//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 { public static void Main(string[] args) { //Your code goes here LongReturn(200, 11300, 11600); // btc ShortReturn(1.5, 304, 290); // eth ShortReturn(0.02, 11410, 11100); } public static void LongReturn(double principleFiat, double priceBought, double priceSold) { double soldValue = principleFiat/priceBought * priceSold; Console.WriteLine(soldValue); } public static void ShortReturn(double principleCrypto, double priceSold, double priceBought) { double soldValue = principleCrypto*priceSold/priceBought; Console.WriteLine(soldValue); } } }
run
|
edit
|
history
|
help
0
swap using xor
Create HardwareConfigs
valida fechas sura
partial method
C# - out parameters and reference parameters
Merge Sort
Hello World Sub
sdfrgthyjuiloiujyhtgrf
pass-len-to-predicate-modified
EVEN AND ODD