15 lines
162 B
C
15 lines
162 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int abs(int num)
|
||
|
{
|
||
|
return (num<0)?-num:num;
|
||
|
}
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
int num;
|
||
|
scanf("%d",&num);
|
||
|
printf("%d",abs(num));
|
||
|
return 0;
|
||
|
}
|