Помогите!!! написать програмку в C# 6 задание

0 голосов
64 просмотров

Помогите!!! написать програмку в C#
6 задание


image

Информатика (356 баллов) | 64 просмотров
Дан 1 ответ
0 голосов
Правильный ответ

Разбирайся.using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { const double stepSize = 0.32; const double beginValue = 0.1; const double endValue = 6.51; const double alpha = 0.28; static double function(double x) { double numerator; double denumerator; double fraction; numerator = Math.Cos(x - alpha); denumerator = Math.Sqrt(x); fraction = numerator / denumerator; return fraction; } static void Main(string[] args) { String outValue; for (double x = beginValue; x

(1.4k баллов)
0

отлично конечно копирует XD

0

Ща поправим тут что бы было нормально

0

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{

class Program
{
const double stepSize = 0.32;
const double beginValue = 0.1;
const double endValue = 6.51;
const double alpha = 0.28;

static double function(double x)
{
double numerator;
double denumerator;
double fraction;

numerator = Math.Cos(x - alpha);
denumerator = Math.Sqrt(x);

fraction = numerator / denumerator;

return fraction;
}

0

static void Main(string[] args)
{
String outValue;

for (double x = beginValue; x <= endValue; x += stepSize)<br> {
outValue = "X: " + x + " Y: " + function(x);
Console.WriteLine(outValue);
}
while (true) ;
}
}
}

0

Вот так выгляит гораздо лучше)