/* Roulette in C#, 48 numbers
By Mihai Popa
Programming in C#
*/

using System;

namespace MyCompiler {
    class Program {
        public static void Main() {
            
            Random rd=new Random();
            int num=rd.Next(1,48);
            int playernum;
            string input;
            
           
            
            Console.WriteLine ("Roulette by Mihai Popa");
            Console.WriteLine ("What is your number?");
            
            input=Console.ReadLine();
            playernum=Convert.ToInt32(input);
            Console.WriteLine("Your number is " + playernum);
            
            Console.WriteLine("The CPU number is " + num);
            
            if (playernum==num)
            {
                Console.WriteLine ("You win!");
            }
            
            else if (playernum <= 24 && num <= 24)
            {
                Console.WriteLine ("You matched the color and you win 10$!");
            }
            
            else if (playernum >= 25 && num >= 25)
            {
                Console.WriteLine ("You matched the color and you win some pocket lint!");
            }
            
            else 
            {
                Console.WriteLine ("Game over, good luck next time! Wa wa waaa!");
            }
        }
        
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: