Zadatak: Imamo x = 10864 i y =18817 treba izracunati Res= 9 * x^4 - y^4 + 2 * y^2
Da li sam postavio kako treba?
#include <stdio.h>
#include <math.h>
int main(void)
{
int long x = 10864 ;
int long y = 18817 ;
int long leRes ;
leRes = 9 * pow( x,4 ) - pow( y,4 ) + 2 * pow( y,2 );
printf("Le resulat est %d\n ", leRes);
}
Rezultat mi je 2