СДЕЛАЙТЕ СВОИ УРОКИ ЕЩЁ ЭФФЕКТИВНЕЕ, А ЖИЗНЬ СВОБОДНЕЕ

Благодаря готовым учебным материалам для работы в классе и дистанционно

Скидки до 50 % на комплекты
только до

Готовые ключевые этапы урока всегда будут у вас под рукой

Организационный момент

Проверка знаний

Объяснение материала

Закрепление изученного

Итоги урока

Geometrik masalalarni ishlashda C# dasturidan foydalanish bo`yicha tuzilgan dasturlar

Категория: Информатика

Нажмите, чтобы узнать подробности

Geometrik masalalarni ishlashda C# dasturidan foydalanish bo`yicha tuzilgan dasturlar. 3 burchak, aylana, 4 burchak

Просмотр содержимого документа
«Geometrik masalalarni ishlashda C# dasturidan foydalanish bo`yicha tuzilgan dasturlar»


Kurs ishida tuzilgan dasturlar



using System;

namespace Mening_dasturim
{
    classProgram
    {
        publicstaticvoidMain(string[] args)
        {
            Console.WriteLine("Hello World!");
            
            Console.ReadKey(true);
        }
    }
}

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace ConsoleApplication25

{

class Program

{

static void Main(string[] args)

{

Double a, b, c, S;

Console.WriteLine("a katet");

a = double.Parse(Console.ReadLine());

Console.WriteLine("b katet");

b = double.Parse(Console.ReadLine());

c=Math.Sqrt(Math.Pow(a,2)+Math.Pow(b,2));

S=(a*b)/2;

Console.WriteLine("Gipotenuzasi"+c+"Yuzasi"+S);

Console.ReadKey();


}

}

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace ConsoleApplication25

{

class Program

{

static void Main(string[] args)

{

double a, S, V;

Console.WriteLine("Kubni qirrasi");

a = double.Parse(Console.ReadLine());

S = 4 * (Math.Pow(a, 2));

V = Math.Pow(a, 3);

Console.WriteLine("Yuza" + S + "Hajm" + V);

Console.ReadKey();


}

}

}

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;


namespace ConsoleApplication27

{

class Program

{

static void Main(string[] args)

{

double r, n, P;

Console.WriteLine("radiusi:");

r = double.Parse(Console.ReadLine());

Console.WriteLine("tomoni:");

n = double.Parse(Console.ReadLine());

P = 2 * n * r * Math.Tan(Math.PI / n);

Console.WriteLine("Perimetri:" +P);

Console.ReadKey();

}

}

}

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication29

{

class Program

{

static void Main(string[] args)

{

double a, b, h;

Console.WriteLine("a asos:");

a = double.Parse(Console.ReadLine());

Console.WriteLine("b asosi:");

b = double.Parse(Console.ReadLine());

h = Math.Sqrt((Math.Pow(a, 2)) - (Math.Pow(b, 2))) / 2;

Console.WriteLine("Balandligi:" + h);

Console.ReadKey();

}

}

}

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace ConsoleApplication29

{

class Program

{

static void Main(string[] args)

{

double a, b, h, S;

Console.WriteLine("a asos:");

a = double.Parse(Console.ReadLine());

Console.WriteLine("b asos:");

b = double.Parse(Console.ReadLine());

Console.WriteLine("h balandlik:");

h = double.Parse(Console.ReadLine());

S = ((a + b) / 2 * h);

Console.WriteLine("Yuzasi:" + S);

Console.ReadKey();


}

}

}



Скачать

Рекомендуем курсы ПК и ППК для учителей

Вебинар для учителей

Свидетельство об участии БЕСПЛАТНО!