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
What are c preprocessors?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is extern variable in c with example?
Explain that why C is procedural?
What is the meaning of && in c?
Explain high-order and low-order bytes.
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is the difference between int main and void main?
Do pointers need to be initialized?
What is openmp in c?
Why void main is used in c?
How the c program is executed?
Can we initialize extern variable in c?
What is the purpose of clrscr () printf () and getch ()?
What are the types of functions in c?