4-Mavzu. Dasturlashda WPF texnologiyasidan foydalanish.
Uchta son berilgan bo‘lsa eng kichigini toppish dasturi.
public static void Main()
{
int a, b, c;
Console.Write("a=");
a=Convert.ToInt32(Console.ReadLine());
Console.Write("b=");
b=Convert.ToInt32(Console.ReadLine());
Console.Write("c=");
c=Convert.ToInt32(Console.ReadLine());
if(a
if(b
if(c
Console.ReadKey();
}
Case.
public static void Main()
{
int R;
Console.Write("R=");
R=int.Parse(Console.ReadLine());
switch (R)
{
case 1:
Console.WriteLine("Radiusi" +R);
break;
case 2:
Console.WriteLine("Diametri" +(2*R));
break;
case 3:
Console.WriteLine("Uzunligi" +(2*Math.PI*R));
break;
case 4:
Console.WriteLine("Yuzasi" +(Math.PI*R*R));
break;
}
5-Mavzu. Matematik tizimlarda matritsalar ustida amallar bajarish. Matematik masalalarni hal qilishda analitik va sonli hisoblash.
Do'stlaringiz bilan baham: |