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 is string concatenation in c?
What are the different types of control structures?
What is a c token and types of c tokens?
Why is void main used?
what do you mean by inline function in C?
Difference between macros and inline functions? Can a function be forced as inline?
How can I read data from data files with particular formats?
What is indirection in c?
Is main an identifier in c?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Can a void pointer point to a function?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Is there any data type in c with variable size?
What is array of structure in c?
What do you mean by Recursion Function?