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
GGT
time
Celsius to Kelvin / Kelvin to Celsius
Full text search using Linqdb
out parameters
IEquatable revised book
C# request sending cookie with request using httpclient
C# practice
Side1-2
tc2_1siod_ga_tp1_benouirane_ex1