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...

difference of two no's with out using - operator

Answer Posted / sandeep

int count(int a , int b)
{
int c=0;
if(a<b)
for(i=a;i<=b;i++)
{
c++;
}
else
for(i=b;i<=a;i++)
{
c++;
}
return(c); }

www.NSITFORUM.co.cc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the preprocessor categories?

1114


What is console in c language?

1140


What is #define?

1190


c program to compute AREA under integral

2466


how to write optimum code to divide a 50 digit number with a 25 digit number??

3298


Who invented bcpl language?

1247


Write a code to remove duplicates in a string.

1084


Write a C program to count the number of email on text

1965


Is c high or low level?

1053


What are the features of c language?

1123


write a c program in such a way that if we enter the today date the output should be next day's date.

2240


What does emoji p mean?

1204


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

1204


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1181


write a program to copy the string using switch case?

2947