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 / paramesh
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
printf("Enter the number")
scanf("%d",&a);
printf("%d double number is %d", a,a<<1);
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Do variables need to be initialized?
How main function is called in c?
Do you have any idea about the use of "auto" keyword?
Are there namespaces in c?
Can you pass an entire structure to functions?
How do you view the path?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is difference between main and void main?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Why doesnt this code work?
What is the size of enum in c?
What is pointer and structure in c?
What are the advantages of using macro in c language?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.