MIPI_BaseC_WebinarFRTK/06_Lecture06/11_module_p29.c

15 lines
162 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#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;
}