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
show how link list can be used to repersent the following polynomial i) 5x+2
What are the difference between a free-standing and a hosted environment?
What does %c mean in c?
What is a example of a variable?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is typedef struct in c?
what is a constant pointer in C
How can a program be made to print the name of a source file where an error occurs?
What is the use of header?
What is #include conio h?
What is an auto variable in c?
What is auto keyword in c?
What is table lookup in c?
Does c have circular shift operators?
What is a static function in c?