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

Ответы на вопрос
Ответил DigitalAnnihilator
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 <= endValue; x += stepSize)
{
outValue = "X: " + x + " Y: " + function(x);
Console.WriteLine(outValue);
}
while (true) ;
}
}
}
Ответил DigitalAnnihilator
0
отлично конечно копирует XD
Ответил DigitalAnnihilator
0
Ща поправим тут что бы было нормально
Ответил DigitalAnnihilator
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;
}
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;
}
Ответил DigitalAnnihilator
0
static void Main(string[] args)
{
String outValue;
for (double x = beginValue; x <= endValue; x += stepSize)
{
outValue = "X: " + x + " Y: " + function(x);
Console.WriteLine(outValue);
}
while (true) ;
}
}
}
{
String outValue;
for (double x = beginValue; x <= endValue; x += stepSize)
{
outValue = "X: " + x + " Y: " + function(x);
Console.WriteLine(outValue);
}
while (true) ;
}
}
}
Ответил DigitalAnnihilator
0
Вот так выгляит гораздо лучше)
Новые вопросы