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
Why main is not a keyword in c?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
What is the advantage of a random access file?
Can we change the value of constant variable in c?
What are categories used for in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
How can I manipulate strings of multibyte characters?
List some applications of c programming language?
What are the different data types in C?
Why is c not oop?
Can a file other than a .h file be included with #include?
How do I swap bytes?
Differentiate between full, complete & perfect binary trees.
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above