Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

how to write a c program to print list of fruits in alpabetical order?

2265


What is const and volatile in c?

1005


Which programming language is best for getting job 2020?

1012


What are enums in c?

1149


Explain the difference between malloc() and calloc() function?

1005


What is c token?

1036


What is oops c?

1163


Why is c so important?

1012


Write a code to generate a series where the next element is the sum of last k terms.

1186


Can math operations be performed on a void pointer?

1015


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

2318


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1124


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.

1940


Explain can static variables be declared in a header file?

1121


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1212