What is the function used for absolute value?
Answers
Answered by
4
abs( ) function in C returns the absolute value of an integer. The absolute value of a number is always posi
#include <stdio.h>#include <stdlib.h>int main(){ int m = abs(200); // m is assigned to 200 int n = abs(-400); // n is assigned to -400 printf("Absolute value of m = %d\n", m); printf("Absolute value of n = %d \n",n); return 0;}
tive. Only integer values are supported in C.
mark as brainliest answer if u like doant forget to thanks
#include <stdio.h>#include <stdlib.h>int main(){ int m = abs(200); // m is assigned to 200 int n = abs(-400); // n is assigned to -400 printf("Absolute value of m = %d\n", m); printf("Absolute value of n = %d \n",n); return 0;}
tive. Only integer values are supported in C.
mark as brainliest answer if u like doant forget to thanks
Answered by
20
ANSWER
...............
THE FUNCTION IS GIVEN BELOW
..........................
************************************************************
#include
<stdio.h>
#include
<stdlio.h>
int main()
{
int m = abs(200);
// m is assigned to 200
int n = abs(-400);
// n is assigned to -400
printf
("Absolute value of m = %d\n", m);
printf
("Absolute value of n = %d \n",n); return 0
;}
tive ( + ) . Only integer values are supported in C.
...............
THE FUNCTION IS GIVEN BELOW
..........................
************************************************************
#include
<stdio.h>
#include
<stdlio.h>
int main()
{
int m = abs(200);
// m is assigned to 200
int n = abs(-400);
// n is assigned to -400
printf
("Absolute value of m = %d\n", m);
printf
("Absolute value of n = %d \n",n); return 0
;}
tive ( + ) . Only integer values are supported in C.
Similar questions