#include <iostream> #include <cstdlib> using namespace std; int main() { int a=5.42; int x = abs(a); cout << x; return 0; }
Output : 5
5