using System;
namespace MyCompiler {
class Program {
public static void Main(string[] args) {
Console.WriteLine("entrar com quatro numeros (inteiros):");
int numero = Convert.ToInt32(Console.ReadLine());
double pow = Math.Pow(numero, 1);
int numero2 = Convert.ToInt32(Console.ReadLine());
double pow2 = Math.Pow(numero2, 2);
int numero3 = Convert.ToInt32(Console.ReadLine());
double pow3 = Math.Pow(numero3, 3);
int numero4 = Convert.ToInt32(Console.ReadLine());
double pow4 = Math.Pow(numero4, 4);
Console.WriteLine(numero*pow + numero2*pow2 + numero3*pow3 + numero4*pow4);
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: