-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath.cpp
More file actions
29 lines (25 loc) · 810 Bytes
/
math.cpp
File metadata and controls
29 lines (25 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include<iostream>
#include<cmath>
int main(){
double a = 5.0001;
double b = 6;
int c = std:: max(a,b);
int d = std:: min(a,b);
int e = pow(2,4);
int f = sqrt(256);
int g = abs(-3);
int h = round(a);
int i = floor(-2.5);
int j = ceil(-2.5);
long long k = tgamma(5);
std :: cout << "MAX : " << c << std :: endl;
std :: cout << "MIN : " << d << std :: endl;
std :: cout << "Power : " << e << std :: endl;
std :: cout << "Square Root : " << f << std :: endl;
std :: cout << "Absolute : " << g << std :: endl;
std :: cout << "Round : " << h << std :: endl;
std :: cout << "Floor : " << i << std :: endl;
std :: cout << "Ceiling : " << j << std :: endl;
std :: cout << "Factorial : " << k << std :: endl;
return 0;
}