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 mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Are pointers really faster than arrays?
What is the difference between the = symbol and == symbol?
Which function in C can be used to append a string to another string?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Explain a pre-processor and its advantages.
Why array is used in c?
What is array of structure in c?
What is the use of #define preprocessor in c?
What is the code in while loop that returns the output of given code?
What are the types of data structures in c?
What is a program flowchart and how does it help in writing a program?
What is sizeof int?
Can we replace the struct function in tree syntax with a union?
What is the difference between c and python?