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
Hi can anyone tell what is a start up code?
What is a char in c?
What is volatile c?
What is the purpose of realloc()?
Can you define which header file to include at compile time?
What is binary tree in c?
How many types of arrays are there in c?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Explain what is a const pointer?
What are the advantages and disadvantages of a heap?
how we can make 3d venturing graphics on outer interface
Explain what is the most efficient way to store flag values?
How important is structure in life?
What are all different types of pointers in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?