-------------------------------------------------------------------- Merhaba arkadaşlar ben bilişim bölümünde okuyorum.Ve bu sene Microsoft Visual Studio programındaki C# Console kodlarını öğreniyoruz.Önümüzdeki seneyede veri tabanını seçip form application öğrenmeyi düşünüyorum.Küçük çapta yaptığım bu tarz şeyler bulunmakta.İyi Forumlar Arkadaşlar
Kod Satırı
Kod:
//3 Notlu //2 Notlu //Seçim int not1; int not_1; int secim;
int not2; int not_2;
int not3; double ort_1;
double ort1;
Console.WriteLine("2 Not Giricekseniz 2'ye 3 ise 3'e Basınız");
secim = Convert.ToInt32(Console.ReadLine());
//2 Not
if (secim == 2)
{
Console.WriteLine("1. Notu Giriniz");
not_1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("2. Notu Giriniz");
not_2 = Convert.ToInt32(Console.ReadLine());
ort_1 = (not_1 + not_2) / 2;
Console.WriteLine("Ortalamanız:"+" "+ort_1);
if (ort_1>49)
Console.WriteLine("Geçtiniz");
else
Console.WriteLine("Kaldınız");
Console.ReadKey();
}
//3 Not
else
{
Console.WriteLine("1. Notu Giriniz");
not1=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("2. Notu Giriniz");
not2=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("3. Notu Giriniz");
not3=Convert.ToInt32(Console.ReadLine());
ort1=(not1+not2+not3)/3;
Console.WriteLine("Ortalamanız:"+" "+ort1);
if (ort1>49)
Console.WriteLine("Geçtiniz");
else
Console.WriteLine("Kaldınız");
Console.ReadKey();
}
Proje İndirme Linki
Kod Satırı
Kod:
//3 Notlu //2 Notlu //Seçim int not1; int not_1; int secim;
int not2; int not_2;
int not3; double ort_1;
double ort1;
Console.WriteLine("2 Not Giricekseniz 2'ye 3 ise 3'e Basınız");
secim = Convert.ToInt32(Console.ReadLine());
//2 Not
if (secim == 2)
{
Console.WriteLine("1. Notu Giriniz");
not_1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("2. Notu Giriniz");
not_2 = Convert.ToInt32(Console.ReadLine());
ort_1 = (not_1 + not_2) / 2;
Console.WriteLine("Ortalamanız:"+" "+ort_1);
if (ort_1>49)
Console.WriteLine("Geçtiniz");
else
Console.WriteLine("Kaldınız");
Console.ReadKey();
}
//3 Not
else
{
Console.WriteLine("1. Notu Giriniz");
not1=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("2. Notu Giriniz");
not2=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("3. Notu Giriniz");
not3=Convert.ToInt32(Console.ReadLine());
ort1=(not1+not2+not3)/3;
Console.WriteLine("Ortalamanız:"+" "+ort1);
if (ort1>49)
Console.WriteLine("Geçtiniz");
else
Console.WriteLine("Kaldınız");
Console.ReadKey();
}
Proje İndirme Linki
Linkleri sadece kayıtlı üyeler görebilir. Linkleri görebilmek için Üye Girişi yapın veya ücretsiz olarak Kayıt Olun