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 binary tree in c?
What are the disadvantages of a shell structure?
What is an example of structure?
What are types of functions?
Can a pointer be volatile in c?
How are structure passing and returning implemented?
How do you construct an increment statement or decrement statement in C?
How can I use a preprocessorif expression to ?
What is main () in c?
Which is the memory area not included in C program? give the reason
What are the advantages of c language?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What does p mean in physics?
What is default value of global variable in c?