Write a C program to find absolute value of a number.

#include <stdio.h>
#include <conio.h>
  main()
{
  int num;
  clrscr();
  printf("\n Enter any num to find absolute value");
  scanf("\n %d",&num);
  if(number<0)
{
  num=(-1)*num;
  printf("\n Absolute value is =%d",num);
}
  return (0);
}

 output:-
  enter the value of num =-100
  Absolute value