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
What is the difference between a string and an array?
How do you list files in a directory?
What is hashing in c?
Explain zero based addressing.
Write a program to swap two numbers without using third variable?
Why is not a pointer null after calling free?
What is extern c used for?
What is the advantage of a random access file?
Why array is used in c?
What are called c variables?
write a program to copy the string using switch case?
Differentiate between Macro and ordinary definition.
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
How do I create a directory? How do I remove a directory (and its contents)?
When would you use a pointer to a function?