Rastgele şanslı müşteriye rastgele hediye veren program – C# Console

R

ravex

Ultra Member
Joined
Jul 30, 2019
Messages
661
Reaction score
356
Location
Turkey
C#:
int rsayi=0;
string devam="E";
string[] isimler = {"Ali","Veli","Sema","Ayşe","Fatma","Olcan","Taner","Esma","Esra","Azra" };
string[] hediyeler = { "Araba", "TV", "Ütü" };
Random r = new Random();
while (devam=="E" && devam=="e" && devam=="evet" && devam=="EVET")
{
rsayi = r.Next(9);
Console.WriteLine("Şanslı Müşteri : ******** {0} ***********",isimler[rsayi]);
rsayi = r.Next(2);
Console.WriteLine("Kazandığı Hediye: ******** {0} ***********", hediyeler[rsayi]);
Console.Write("Devam etmek ister misiniz ? ");
devam = Console.ReadLine();
}
Console.ReadLine();
Alıntıdır
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Tema düzenleyici

Top Bottom