Dasturning blok sxemadagi algoritmi: Dasturning C# dagi ko’rinishi: using


Download 66.85 Kb.
bet4/4
Sana20.11.2023
Hajmi66.85 Kb.
#1790164
1   2   3   4
Bog'liq
3-topshiriq 2-variant

public static void Main(string[] args)
{
double A,B,C;
for (int i=1;i<=3;i++)
{
Console.WriteLine(i+"-tenglama uchun: ");
Console.Write("x ning kvadrati oldidagi koeffisentini kiriting: A=");
A=double.Parse(Console.ReadLine());
Console.Write("x ning oldidagi koeffisentini kiriting: B=");
B=double.Parse(Console.ReadLine());
Console.Write("Ozod hadni kiriting: C=");
C=Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Tenglama ildizlari soni: "+RootsCount(A,B,C)+"\n");
}
Console.ReadKey(true);
}
}
}
Natija:

6. S satr berilgan, so’zlar orasida ortiqcha probellar mavjud. Uni shunday
o’zgartirinki, so’zlar o’rtasida bitta probel bo’lsin.
Dasturning blok sxemadagi algoritmi:
Dasturning C# dagi ko’rinishi:


Natija:


Bajardi: Abdumalikov Axmadali Qabul qildi: Sh.Farmonov

Download 66.85 Kb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling