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
how to write a c program to print list of fruits in alpabetical order?
What is const and volatile in c?
Which programming language is best for getting job 2020?
What are enums in c?
Explain the difference between malloc() and calloc() function?
What is c token?
What is oops c?
Why is c so important?
Write a code to generate a series where the next element is the sum of last k terms.
Can math operations be performed on a void pointer?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
How would you use the functions fseek(), freed(), fwrite() and ftell()?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Explain can static variables be declared in a header file?
a value that does not change during program execution a) variabe b) argument c) parameter d) none