using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace togel
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("masukan angka taruhan anda : ");
string a = (Console.ReadLine());
Console.WriteLine("masukan jumlah taruhan anda : ");
int b = (int.Parse(Console.ReadLine()));
Random r = new Random();
int x = r.Next(10000);
string e = x.ToString();
string sub = e.Substring((e.Length - a.Length), a.Length);
if (sub == a)
{
if (a.Length == 2)
{
Console.WriteLine("anda menang {0}", (b * 60));
}
if (a.Length == 3)
{
Console.WriteLine("anda menang {0}", (b * 120));
}
if (a.Length == 4)
{
Console.WriteLine("anda menang {0}", (b * 200));
}
}
else
{
Console.WriteLine("maav anda kalah");
Console.WriteLine("no togel yang keluar {0}",e);
}
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace togel
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("masukan angka taruhan anda : ");
string a = (Console.ReadLine());
Console.WriteLine("masukan jumlah taruhan anda : ");
int b = (int.Parse(Console.ReadLine()));
Random r = new Random();
int x = r.Next(10000);
string e = x.ToString();
string sub = e.Substring((e.Length - a.Length), a.Length);
if (sub == a)
{
if (a.Length == 2)
{
Console.WriteLine("anda menang {0}", (b * 60));
}
if (a.Length == 3)
{
Console.WriteLine("anda menang {0}", (b * 120));
}
if (a.Length == 4)
{
Console.WriteLine("anda menang {0}", (b * 200));
}
}
else
{
Console.WriteLine("maav anda kalah");
Console.WriteLine("no togel yang keluar {0}",e);
}
}
}
}
No comments:
Post a Comment