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 / sandeep

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter a floating point value");
scanf("%f",&num);
printf("Given no is %f and twice of number is %f"num,num-(-num));
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main () in c language?

848


what is uses of .net

1472


What is the best way of making my program efficient?

774


What is c language used for?

726


What are pointers? What are different types of pointers?

828


What is the difference between strcpy() and memcpy() function in c programming?

861


Why we use void main in c?

839


In which language linux is written?

931


Explain how do you generate random numbers in c?

820


What are different types of operators?

783


Explain how do you print only part of a string?

931


What are 'near' and 'far' pointers?

811


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1956


How do you declare a variable that will hold string values?

928


Write a program that accept anumber in words

1479