Advertisement
kamandos

LittleMath

Jul 2nd, 2022
681
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include <stdio.h>
  3. #include <math.h>
  4. int main()
  5. {
  6.     double A = sqrt(9);
  7.     double B = pow(2, 4);
  8.     int C = round(3.14);
  9.     int D = ceil(3.14);
  10.     int E = floor(3.99);
  11.     double F = fabs(-100);
  12.     double G = log(3);
  13.     double H = sin(45);
  14.     double I = cos(45);
  15.     double J = tan(45);
  16.    
  17.     printf("\n%lf", A);
  18.    
  19.     return 0;
  20. }
  21.  
Advertisement
RAW Paste Data Copied
Advertisement