#include <stdio.h>
int main() {
int num;
printf("Please Enter Number: ");
scanf(" %d", &num);
// (num < 0) ? printf("The absoulte value is %d", -(num)):printf("The Abosulte Value is %d",num);
// Also above code can written as follows
printf("%d is the absolute value", (num > 0 ? num:-num));
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: