tuan

no
mail@pastecode.io avatar
unknown
c_cpp
2 years ago
241 B
2
Indexable
Never
#include <iostream>
#include <iomanip>
#include <cmath>
#include <stdio.h>
using namespace std;
//  absolute value
int main(){
    int n;
    cin >> n;
    if (n>=0){
        cout << n;
    }else {
        cout << (-n);
    }
    return 0;
}