Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Difference between exit() and _exit() function?

1132


Can an array be an Ivalue?

1089


What is malloc and calloc?

1051


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1362


What's the right way to use errno?

1139


How many types of arrays are there in c?

1040


What do you know about the use of bit field?

1044


What is scope rule in c?

1060


What is the most efficient way to count the number of bits which are set in an integer?

1049


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3950


Explain which function in c can be used to append a string to another string?

1088


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1523


When is a void pointer used?

1238


What is a static variable in c?

1113


How can I read in an object file and jump to locations in it?

1027