Program to find the absolute value of given integer using
Conditional Operators
Answer Posted / bushahiro emmy
#include<stdio.h>
#include<math.h>
int main()
{
int X;
printf("Entrez un nombre: ");
scanf("%d",&X);
printf("la valeur absolue de %d est %.2lf.\n",X,fabs
(X));
return 0;
}
| Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
What is exit() function?
hi, which software companys will take,if d candidate's % is jst 55%?
Here is a neat trick for checking whether two strings are equal
What is auto keyword in c?
What is structure in c definition?
Is struct oop?
What is a lookup table in c?
What is the difference between null pointer and wild pointer?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is #include stdlib h?
What is a rvalue?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
How are pointers declared in c?
Is javascript based on c?
What is pointers in c with example?