tuan

no
 avatar
unknown
c_cpp
4 years ago
241 B
4
Indexable
#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;
}
Editor is loading...