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

Hi can anyone tell what is a start up code?

1619


What is a char in c?

559


What is volatile c?

527


What is the purpose of realloc()?

676


Can you define which header file to include at compile time?

591






What is binary tree in c?

626


How many types of arrays are there in c?

599


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15513


Explain what is a const pointer?

643


What are the advantages and disadvantages of a heap?

716


how we can make 3d venturing graphics on outer interface

4017


Explain what is the most efficient way to store flag values?

702


How important is structure in life?

595


What are all different types of pointers in c?

581


What does the error 'Null Pointer Assignment' mean and what causes this error?

746