Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. double averageip = 76.9;
  2. Console.WriteLine("How much IP do you have?");
  3. double myip = Convert.ToDouble(Console.ReadLine());
  4. Console.WriteLine("How much IP is that champ?");
  5. double champip = Convert.ToDouble(Console.ReadLine());
  6. Console.WriteLine("Is it the win of the day? (True or False)");
  7. bool wotd = Convert.ToBoolean(Console.ReadLine());
  8. double formula = Convert.ToInt32((champip - myip + 256) / averageip);
  9. if (wotd != true)
  10. formula = Convert.ToInt32((champip - myip) / averageip);
  11. Console.WriteLine("It will take {0} games until you get that much ip" , formula);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement