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
Is using exit() the same as using return?
Can you write the algorithm for Queue?
What is wrong with this program statement? void = 10;
What is array within structure?
What is the difference between functions getch() and getche()?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is use of bit field?
What is the purpose of 'register' keyword in c language?
Is it fine to write void main () or main () in c?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Can you pass an entire structure to functions?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the full form of getch?
What is the difference between int main and void main in c?
Is c++ based on c?