ALgorıtma ve C programlama performans Ödevim var YArdım edebılcek varmı
Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
klavyeden girilen notu BEŞLİK SİSTEMEcevıren C programamını yazıcak
int not;
Console.Write("Sınav puanınızı girin ");
not = Convert.ToInt16(Console.ReadLine());
if ((not >= 0) && (not < 50)) Console.Write("Başarısız");
if ((not >= 50) && (not < 60)) Console.Write("Geçer");
if ((not >= 60) && (not < 70)) Console.Write("Orta");
if ((not >= 70) && (not < 85)) Console.Write("İyi");
if ((not >= 85) && (not < = 100)) Console.Write("Pek iyi");
if ((not < 0) || (not > 100)) Console.Write("Hatalı not yazdın");
Console.ReadKey();
Ben böyle yazdım çalışıyor:
int main()
{
int x;
printf_s("Lütfen 0-100 aralığında bir not giriniz:");
scanf_s("%d", &x);
if (x >= 0 && x <= 100)
{
if (x < 20)
printf_s("Not: 0");
else if (x < 45)
printf_s("Not: 1");
else if (x < 55)
printf_s("Not: 2");
else if (x < 70)
printf_s("Not: 3");
else if (x < 85)
printf_s("Not:4");
else
printf_s("Not:5");
}
else printf_s("Girdiğiniz not 0-100 aralığında değildir");
return 0;
Biz C diye bunu öğrendik, console cu derken neyi kastettiğini anlamadım![]()