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


Please Help Members By Posting Answers For Below Questions

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

663


Which is an example of a structural homology?

793


In C language what is a 'dangling pointer'?

644


Which is better oop or procedural?

638


What is scope rule of function in c?

556






How do you list files in a directory?

569


Why string is used in c?

586


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

947


What is wrong with this declaration?

617


How to draw the flowchart for structure programs?

8764


What does 2n 4c mean?

727


What is the difference between pure virtual function and virtual function?

656


Is there a way to jump out of a function or functions?

638


How do I read the arrow keys? What about function keys?

620


Explain Function Pointer?

687