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
How is null defined in c?
Did c have any year 2000 problems?
What are c header files?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
How many loops are there in c?
Write a program to check whether a number is prime or not using c?
What do you mean by dynamic memory allocation in c?
What is a node in c?
What is the value of c?
string reverse using recursion
write a program fibonacci series and palindrome program in c
How can you convert integers to binary or hexadecimal?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Why should I prototype a function?