Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using ConsoleApp1;
  7.  
  8. namespace ConsoleApp1
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. Console.WriteLine("Please enter your score:");
  15. int p1, p2, b1, b2;
  16. p1 = int.Parse(Console.ReadLine());
  17. p2 = int.Parse(Console.ReadLine());
  18. Console.WriteLine($"score:{p1}:{p2}");
  19. b1 = int.Parse(Console.ReadLine());
  20. b2 = int.Parse(Console.ReadLine());
  21. Console.WriteLine($"Your bid: {b1}:{b2}");
  22. if (p1 == b1 && p2 == b2)
  23. {
  24. Console.WriteLine("Payout ratio: 5");
  25. }
  26. else if (p1 < p2 && b1 < b2 || p1 == p2 && b1 == b2 || p1 > p2 && b1 > b2)
  27. {
  28. Console.WriteLine("Payout ratio: 1");
  29. }
  30. else
  31. {
  32. Console.WriteLine("Payout ratio: 0");
  33. }
  34. }
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement