C# Not Ortalamasının Harf Karşılığı

R

ravex

Ultra Member
Joined
Jul 30, 2019
Messages
661
Reaction score
356
Location
Turkey
Bir öğrencinin notlarına göre ortalamasını hesaplayan ve bu ortalamanın harf karşılığını bulan C# Console Uygulaması kodları
C#:
double yazili1 = 0;
            double yazili2 = 0;
            double yazili3 = 0;
            double ort = 0;
            //http://www.bilisimogretmeni.com/
            Console.Write("Yazılı 1 Notu=");
            yazili1 = Convert.ToDouble(Console.ReadLine());
            Console.Write("Yazılı 2 Notu=");
            yazili2 = Convert.ToDouble(Console.ReadLine());
            Console.Write("Yazılı 3 Notu=");
            yazili3 = Convert.ToDouble(Console.ReadLine());
            ort = (yazili1 + yazili2 + yazili3) / 3;
            Console.Write("öğrencini not ortalaması=");
            Console.WriteLine(ort);//http://www.realitycheats.com/
            if (ort < 101 && ort >= 84)
                Console.WriteLine("öğrencinin not karşılığı aldığı harf=  A");
            else if (ort < 84 && ort >= 79)
                Console.WriteLine("öğrencinin not karşılığı aldığı harf=  B");
            else if (ort < 79 && ort > 69)
                Console.WriteLine("öğrencinin not karşılığı aldığı harf=  C");
            else if (ort < 69 && ort >= 55)
                Console.WriteLine("öğrencinin not karşılığı aldığı harf=  D");
            else if (ort < 54 && ort > 45)
                Console.WriteLine("öğrencinin not karşılığı aldığı harf=  E");
            else if (ort < 44 && ort >= 25)//http://www.realitycheats.com/
                Console.WriteLine("öğrencinin not karşılığı aldığı harf=  F");
            else if (ort < 24 && ort >= 0)
                Console.WriteLine("öğrencinin not karşılığı aldığı harf=  G");
            Console.ReadKey();
 
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