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 'near' and 'far' pointers?
Differentiate between a for loop and a while loop? What are it uses?
Define and explain about ! Operator?
What is array of structure in c?
Is c object oriented?
What do you understand by normalization of pointers?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is the process to create increment and decrement stamen in c?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What would be an example of a structure analogous to structure c?
Explain what is a 'locale'?
What is the difference between procedural and functional programming?
Why is c faster?
What are the storage classes in C?
What is the process to generate random numbers in c programming language?