Information

Contact Contact link
Deadline Καμία προθεσμία
Submission limit No limitation
Category tags level1, s1

Ετικετές

Συνδεθείτε

[S1] Absolute value

The absolute value of a number is defined as |n| = n if n >= 0, |n| = -n else.


Absolute value

Write the body of the function absval returning the absolute value of i.

int absval(int i) {