输入一个数 ,输出其绝对值。
一行一个整数
-3
3
#include<bits/stdc++.h> using namespace std; long long a; int main() { cin>>a; cout<<abs(a); return 0; }