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
Write a program to reverse a string.
What does the c preprocessor do?
Why do we need functions in c?
what is different between auto and local static? why should we use local static?
what are enumerations in C
What are the types of type qualifiers in c?
application attempts to perform an operation?
Explain what are multibyte characters?
What does int main () mean?
Who developed c language and when?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is the purpose of realloc()?
Why c is called free form language?
How reliable are floating-point comparisons?