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
ATM machine and railway reservation class/object diagram
What is the difference between printf and scanf in c?
Write a C program in Fibonacci series.
What is the scope of global variable in c?
How can you find the exact size of a data type in c?
What is the use of sizeof?
What is use of pointer?
Tell me what are bitwise shift operators?
What is huge pointer in c?
C language questions for civil engineering
How can I call a function with an argument list built up at run time?
What are register variables? What are the advantage of using register variables?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What is use of bit field?
Can static variables be declared in a header file?