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 is the use of typedef in c?

1021


write a program to print largest number of each row of a 2D array

2314


What is a pointer value and address in c?

1108


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

1079


Explain what are compound statements?

1041


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1243


What is bss in c?

1083


Why C language is a procedural language?

1008


Is array a primitive data type in c?

1036


Why header file is used in c?

1077


What is action and transformation in spark?

1144


What is identifier in c?

1002


what is the function of pragma directive in c?

1109


Explain what does the function toupper() do?

1057


What is the use of a static variable in c?

1047