Ответы на вопрос:
using system;
public class program
{
public static void main()
{
double x = double.parse(console.;
double y = 1 - 2 * x + 3 * math.pow(x, 2)- 4 * math.pow(x, 3);
console.writeline(y); //1-2x+3x^2-4x^3
y = 1 + 2 * x + 3 * math.pow(x, 2)+ 4 * math.pow(x, 3);
console.writeline(y); //1+2x+3x^2+4x^3
}
}
ответ:
объяснение:
using system;
using system.collections.generic;
using system.linq;
using system.text;
namespace example
{
class program
{
static void main(string[] args)
{
int x, answer1, answer2;
console.write("введите x : ");
x = int.parse(console.;
answer1 = 2*x+3*convert.toint32(math.pow(x,2))-4*convert.toint32(math.pow(x,3));
answer2 = 1+2*x+3*convert.toint32(math.pow(x,2))+4*convert.toint32(math.pow(x,3));
console.writeline("значение первого выражения : " + answer1);
console.writeline("значение второго выражения : " + answer2);
console.readline();
}
}
}
Популярно: Информатика
-
dasha197022.03.2021 06:36
-
Pipisk04.06.2021 22:58
-
камила90518.02.2021 14:37
-
lubimka420.06.2020 13:15
-
Ален4ик17913.04.2022 07:15
-
deadcreamrus13.01.2022 01:17
-
Nikalime15631.08.2022 15:33
-
07072002kl02.11.2022 00:02
-
06Loki9008.10.2020 20:15
-
Georgy033528.06.2021 08:04