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
What are the preprocessor categories?
What is console in c language?
What is #define?
c program to compute AREA under integral
how to write optimum code to divide a 50 digit number with a 25 digit number??
Who invented bcpl language?
Write a code to remove duplicates in a string.
Write a C program to count the number of email on text
Is c high or low level?
What are the features of c language?
write a c program in such a way that if we enter the today date the output should be next day's date.
What does emoji p mean?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
write a program to copy the string using switch case?