Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using ConsoleApp1;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please enter your score:");
- int p1, p2, b1, b2;
- p1 = int.Parse(Console.ReadLine());
- p2 = int.Parse(Console.ReadLine());
- Console.WriteLine($"score:{p1}:{p2}");
- b1 = int.Parse(Console.ReadLine());
- b2 = int.Parse(Console.ReadLine());
- Console.WriteLine($"Your bid: {b1}:{b2}");
- if (p1 == b1 && p2 == b2)
- {
- Console.WriteLine("Payout ratio: 5");
- }
- else if (p1 < p2 && b1 < b2 || p1 == p2 && b1 == b2 || p1 > p2 && b1 > b2)
- {
- Console.WriteLine("Payout ratio: 1");
- }
- else
- {
- Console.WriteLine("Payout ratio: 0");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement