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...

write a C program, given number is double without using addt
ion and multiplication operator?ex:n=6,ans=12,pls send me ans
to goviseenu@gmail.com

Answer Posted / sandeep

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter a floating point value");
scanf("%f",&num);
printf("Given no is %f and twice of number is %f"num,num-(-num));
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a string.

1025


What does the c preprocessor do?

1050


Why do we need functions in c?

956


what is different between auto and local static? why should we use local static?

1077


what are enumerations in C

1107


What are the types of type qualifiers in c?

1032


application attempts to perform an operation?

1917


Explain what are multibyte characters?

1111


What does int main () mean?

959


Who developed c language and when?

1009


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2045


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1646


What is the purpose of realloc()?

1094


Why c is called free form language?

970


How reliable are floating-point comparisons?

1034