tuan

no
Anonymous
c_cpp
08/29/2021 12:55 PM
324 B
36
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...