Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Upgrade
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int kill, hit, upArma, upArmor, upgrade; double arma, armor; kill = 25599; hit = 149999; arma = Math.Pow((kill/50),(1.0/3.0)); armor = Math.Pow((hit/150),(1.0/3.0)); arma = arma + 0.00000000001; armor = armor + 0.00000000001; Console.WriteLine("(double) UP Arma: " + arma); Console.WriteLine("(double) UP Armor: " + armor); upArma = (int) arma; upArmor = (int) armor; Console.WriteLine("(Int) UP Arma: " + upArma); Console.WriteLine("(Int) UP Armor: " + upArmor); } } }
run
|
edit
|
history
|
help
0
operator
Testing 001
HSC
75 95
DateTime
Events
EricomQ9
MVC Learning
Arrays Solved
Sample