I would like to get support, here's the condition. Given the real numbers y, z, the positive integer n and the generated random positive integer x (x = 0 ... n). Calculate the formula. Print the integer part of the result. Help me figure out the errors, what's wrong? It asks for something that somewhere is not a parenthesis, and swears at random (x).
Here is my solution to this type of problem:
#include <stdio.h> #include <stdlib.h> #include <math.h> main() { float y, z, a; unsigned int n; random(x); printf("y="); scanf("%f", &y); printf("z="); scanf("%f", &z); printf("a="); scanf("%f", &a); printf("n="); scanf("%f", &n); randomize(); a = (5(pow(x, 5)) * log 10(y) + 5) / (4 pow(y, 2) * e(sinz) - x / y + 1); printf("Result=%8.5f", a); return 0; }