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; } 

    1 answer 1

    The variable x is not declared. There is no standard function random (.) And randomize (). There are rand () and srand (int). Where the formula is calculated - in general there is some kind of chaos. I would like to clarify whether the author of the question tried to look at least some handbook on the C language before writing here? I recommend starting with Kernigan and Ritchie "C programming language". Still, the portal, it seems to me, is not intended for learning the basics of syntax. Write a working code is not a problem - but I want the portal to help independent work, and not replace it.