Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <math.h>
- void main()
- {
- int x;
- int y;
- double z;
- printf("Hello! It's time to start our calculations! Please, enter the numbers.\nx = ");
- scanf_s("%10d", &x);
- printf("y = ");
- scanf_s("%10d", &y);
- printf("z = ");
- scanf_s("%10le", &z);
- printf("Let's check it up! You have entered following numbers: \n");
- printf("%10d\n", x);
- printf("%10d\n", y);
- printf("%10.5e\n", z);
- double m = fabs((__int64)x * (-1) + 6);
- double p = pow(m, 1 / 8);
- double t = sin(5 * (__int64)y) + 9;
- double pt = p / t;
- double pty = pt * pow(y, 2);
- double resa = pty - 3 * (_int64)x;
- double arg = fabs(3 * (__int64)x - 2 * (__int64)y) + 1;
- double ln = log(arg);
- double resb = ln * sin(x / 3);
- printf("The value of 'a' is %.4f\n", resa);
- printf("The value of 'b' is %.4f", resb);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement