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
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are the restrictions of a modulus operator?
What is array in C
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What are the rules for the identifier?
what is use of malloc and calloc?
what is bit rate & baud rate? plz give wave forms
How can I trap or ignore keyboard interrupts like control-c?
What is the difference between the expression “++a” and “a++”?
Explain how do you list a file’s date and time?
What is a stream?
How can I find out if there are characters available for reading?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What is identifier in c?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.