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 / manish soni bca 3rd year jaipu

#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("Enter number which you want to
double");
scanf("%d",&a);
printf("THE NUMBER IS %d AND DOUBLE NO IS %
d.",a,a<<1);
getch();//optional to write getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 'near' and 'far' pointers?

1090


Differentiate between a for loop and a while loop? What are it uses?

1234


Define and explain about ! Operator?

1045


What is array of structure in c?

1253


Is c object oriented?

1013


What do you understand by normalization of pointers?

1101


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1292


What is the process to create increment and decrement stamen in c?

1103


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1169


What would be an example of a structure analogous to structure c?

1048


Explain what is a 'locale'?

1129


What is the difference between procedural and functional programming?

1133


Why is c faster?

1183


What are the storage classes in C?

1203


What is the process to generate random numbers in c programming language?

1218