NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

static void Main(string[] args)
{
int b = 0, c = 0, d = 0, e = 0, f = 0, g = 10, h = 10, y = 10, u = 10, m = 10, kasa = 0, s = 0;

enbas:
Console.Clear();
object[,] dizi = {
{ "NOt", "Dolut", "Boş" },
{ "1-t", b + "t", g },
{ "2-t", c + "t", h },
{ "3-t", d + "t", y },
{ "4-t", e + "t", u },
{ "5-t", f + "t", m }
};
Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
Console.WriteLine("|| OTOPARK ||");
Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
Console.WriteLine("|| 1-Araç Girişi ||");
Console.WriteLine("|| 2-Araç Çıkışı ||");
Console.WriteLine("|| 3-Katları Gör ||");
Console.WriteLine("|| 4-Kasayı Gör ||");
Console.WriteLine("|| 5-Gün Sonu ||");
Console.WriteLine("|| 6-Çıkış ||");
Console.WriteLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
Console.WriteLine();
Console.Write("Lütfen Bir Tercih Yapınız: ");
int x = Convert.ToInt16(Console.ReadLine());

#region aracgiris

/****** Araç Girişi *********/
if (x == 1)
{
aracgiris:
Console.Clear();
for (int i = 0; i < 6; i++)
{
for (int j = 0; j < 3; j++)
{
Console.Write(dizi[i, j]);
}
Console.WriteLine();
}
Console.WriteLine();
Console.Write("Giriş Yapmak İstediğiniz Katı Seçiniz: ");
int a = Convert.ToInt16(Console.ReadLine());
if (a == 1)
{
if (g == 0)
{
Console.WriteLine("Kat Doldu Bu Kata Giriş Yapılamaz");
Thread.Sleep(2000);
goto aracgiris;
}
else
{
b++;
g--;
Console.WriteLine("Araç Kata Giriş Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 2)
{
if (h == 0)
{
Console.WriteLine("Kat Doldu Bu Kata Giriş Yapılamaz");
Thread.Sleep(2000);
goto aracgiris;
}
else
{
c++;
h--;
Console.WriteLine("Araç Kata Giriş Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 3)
{
if (y == 0)
{
Console.WriteLine("Kat Doldu Bu Kata Giriş Yapılamaz");
Thread.Sleep(2000);
goto aracgiris;
}
else
{
d++;
y--;
Console.WriteLine("Araç Kata Giriş Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 4)
{
if (u == 0)
{
Console.WriteLine("Kat Doldu Bu Kata Giriş Yapılamaz");
Thread.Sleep(2000);
goto aracgiris;
}
else
{
e++;
u--;
Console.WriteLine("Araç Kata Giriş Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 5)
{
if (m == 0)
{
Console.WriteLine("Kat Doldu Bu Kata Giriş Yapılamaz");
Thread.Sleep(2000);
goto aracgiris;
}
else
{
f++;
m--;
Console.WriteLine("Araç Kata Giriş Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else
{
Console.WriteLine("Yanlış Bir Giriş Yaptınız , Yönlendiriliyorsunuz");
Thread.Sleep(2000);
goto aracgiris;
}

}
#endregion

#region araccikis
/******* Araç Çıkışı ******/

else if (x == 2)
{
araccıkıs:
Console.Clear();
for (int i = 0; i < 6; i++)
{
for (int j = 0; j < 3; j++)
{
Console.Write(dizi[i, j]);
}
Console.WriteLine();
}
Console.WriteLine();
Console.Write("Çıkış Yapmak İstediğiniz Katı Seçiniz: ");
int a = Convert.ToInt16(Console.ReadLine());
if (a == 1)
{
if (b == 0)
{
Console.WriteLine("Katta Araç Yok Çıkış Yapılamaz");
Thread.Sleep(2000);
goto araccıkıs;
}
else
{
b--;
g++;
Console.Write("Araç Katta Kaç Saat Kalmıştır? ");
s = Convert.ToInt16(Console.ReadLine());
kasa += (s * 5);
Console.WriteLine("Tutar: "+(s*5)+" TL");

Console.WriteLine("Araç Kattan Çıkış Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 2)
{
if (c == 0)
{
Console.WriteLine("Katta Araç Yok Çıkış Yapılamaz");
Thread.Sleep(2000);
goto araccıkıs;
}
else
{
c--;
h++;
Console.Write("Araç Katta Kaç Saat Kalmıştır? ");
s = Convert.ToInt16(Console.ReadLine());
kasa += (s * 5);
Console.WriteLine("Tutar: " + (s * 5) + " TL");
Console.WriteLine("Araç Kattan Çıkış Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 3)
{
if (d == 0)
{
Console.WriteLine("Katta Araç Yok Çıkış Yapılamaz");
Thread.Sleep(2000);
goto araccıkıs;
}
else
{
d--;
y++;
Console.Write("Araç Katta Kaç Saat Kalmıştır? ");
s = Convert.ToInt16(Console.ReadLine());
kasa += (s * 5);
Console.WriteLine("Tutar: " + (s * 5) + " TL");
Console.WriteLine("Araç Kattan Çıkış Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 4)
{
if (e == 0)
{
Console.WriteLine("Katta Araç Yok Çıkış Yapılamaz");
Thread.Sleep(2000);
goto araccıkıs;
}
else
{
e--;
u++;
Console.Write("Araç Katta Kaç Saat Kalmıştır? ");
s = Convert.ToInt16(Console.ReadLine());
kasa += (s * 5);
Console.WriteLine("Tutar: " + (s * 5) + " TL");
Console.WriteLine("Araç Kattan Çıkış Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else if (a == 5)
{
if (f == 0)
{
Console.WriteLine("Katta Araç Yok Çıkış Yapılamaz");
Thread.Sleep(2000);
goto araccıkıs;
}
else
{
f--;
m++;
Console.Write("Araç Katta Kaç Saat Kalmıştır? ");
s = Convert.ToInt16(Console.ReadLine());
kasa += (s * 5);
Console.WriteLine("Tutar: " + (s * 5) + " TL");
Console.WriteLine("Araç Kattan Çıkış Yaptı");
for (int k = 0; k < 20; k++)
{
Console.Write(".");
Thread.Sleep(123);
}
goto enbas;
}
}
else
{
Console.WriteLine("Yanlış Bir Giriş Yaptınız , Yönlendiriliyorsunuz");
Thread.Sleep(2000);
goto araccıkıs;
}
}
#endregion

/********* Katları Gör *********/
else if (x == 3)
{
Console.Clear();
for (int i = 0; i < 6; i++)
{
for (int j = 0; j < 3; j++)
{
Console.Write(dizi[i, j]);
}
Console.WriteLine();
}
Console.WriteLine("Ana Menüye Dönmek İçin Herhangi Bir Tuşa Basınız");
Console.ReadKey();
goto enbas;
}

/********** Kasayı Gör **********/

else if (x == 4)
{
Console.Clear();
Console.WriteLine("kasa: " + kasa + " TL");
Console.WriteLine();
Console.WriteLine("Ana Menüye Dönmek İçin Bir Tuşa Basın");
Console.ReadKey();
goto enbas;
}

/******** Gün Sonu ************/

else if (x == 5)
{
Console.Clear();
Console.WriteLine("Kasayı Boşalttınız , KASA = 0 TL");
kasa = 0;
Console.WriteLine("n Ana Menü İçin Bir Tuşa Basınız");
Console.ReadKey();
goto enbas;
}

/******** Çıkış *************/

else if (x==6)
{
Console.Clear();
Console.WriteLine("İyi Günler");
Console.ReadKey();
goto son;
}
else
{
Console.WriteLine("Yanlış Bir Giriş Yaptınız , Yönlendiriliyorsunuz");
Thread.Sleep(2000);
goto enbas;
}

Console.ReadKey();
son:;
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.