Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language: input a plastic data in the main function, call the sub-function to find its absolute value, and output it in the main function.
C language: input a plastic data in the main function, call the sub-function to find its absolute value, and output it in the main function.
# contains "stdio.h"

int fabs 1(int x)

{

if(x & lt; 0)return-x;

Otherwise, return x;

}

Master ()

{

int n;

scanf("%d ",& ampn);

printf("%d ",fabs 1(n));

}