c program to subtract between two numbers without using '-'
sign and subtract function.
Answer Posted / pm
say, x-y
{
for (int i=y;i>=0;i--)
x--;
cout<<x;
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain what is the difference between functions abs() and fabs()?
What is omp_num_threads?
How are 16- and 32-bit numbers stored?
Disadvantages of C language.
What is ## preprocessor operator in c?
What is meant by initialization and how we initialize a variable?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Explain which function in c can be used to append a string to another string?
What is printf () in c?
How many loops are there in c?
Why does everyone say not to use scanf? What should I use instead?
Differentiate between functions getch() and getche().
How do you override a defined macro?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What is %d used for?