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


Please Help Members By Posting Answers For Below Questions

What is string concatenation in c?

657


What are the different types of control structures?

677


What is a c token and types of c tokens?

688


Why is void main used?

700


what do you mean by inline function in C?

705






Difference between macros and inline functions? Can a function be forced as inline?

791


How can I read data from data files with particular formats?

703


What is indirection in c?

707


Is main an identifier in c?

701


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.

1700


Can a void pointer point to a function?

660


a value that does not change during program execution a) variabe b) argument c) parameter d) none

810


Is there any data type in c with variable size?

738


What is array of structure in c?

690


What do you mean by Recursion Function?

730