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
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Which is an example of a structural homology?
In C language what is a 'dangling pointer'?
Which is better oop or procedural?
What is scope rule of function in c?
How do you list files in a directory?
Why string is used in c?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is wrong with this declaration?
How to draw the flowchart for structure programs?
What does 2n 4c mean?
What is the difference between pure virtual function and virtual function?
Is there a way to jump out of a function or functions?
How do I read the arrow keys? What about function keys?
Explain Function Pointer?