Advertisement
MARUNIVERSE

Untitled

Sep 22nd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.83 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <math.h>
  4.  
  5. void main()
  6. {
  7.     int x;
  8.     int y;
  9.     double z;
  10.     printf("Hello! It's time to start our calculations! Please, enter the numbers.\nx = ");
  11.     scanf_s("%10d", &x);
  12.     printf("y = ");
  13.     scanf_s("%10d", &y);
  14.     printf("z = ");
  15.     scanf_s("%10le", &z);
  16.     printf("Let's check it up! You have entered following numbers: \n");
  17.     printf("%10d\n", x);
  18.     printf("%10d\n", y);
  19.     printf("%10.5e\n", z);
  20.     double m = fabs((__int64)x * (-1) + 6);
  21.     double p = pow(m, 1 / 8);
  22.     double t = sin(5 * (__int64)y) + 9;
  23.     double pt = p / t;
  24.     double pty = pt * pow(y, 2);
  25.     double resa = pty - 3 * (_int64)x;
  26.     double arg = fabs(3 * (__int64)x - 2 * (__int64)y) + 1;
  27.     double ln = log(arg);
  28.     double resb = ln * sin(x / 3);
  29.     printf("The value of 'a' is %.4f\n", resa);
  30.     printf("The value of 'b' is %.4f", resb);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement