Дано x, вычислить значения 1-2x+3x^2-4x^3 и 1+2x+3x^2+4x^3
c#
нужно,
ответ:
объяснение:
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();
}
}
}