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

program in c to print 1 to 100 without using loop

Answer Posted / gadigebhasker

void otoh(int,int);
void main()
{
int x,y;
printf("enter initial value x & y final value\n");
scanf("%d%d",&x,&y);
printf("0 to 100 number\n");
otoh(x,y);
getch();
}
void otoh(int a,int i)
{
if(a<=i)
{
printf("%d\t",a++);
otoh(a,i);
}
else
printf("END");
}

Is This Answer Correct ?    27 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to print fibonacci series using recursion?

1006


How does free() know explain how much memory to release?

1011


What is the description for syntax errors?

1095


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1015


What is static function in c?

1064


Explain the red-black trees?

1050


What is a built-in function in C?

1512


What is volatile c?

958


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1033


By using C language input a date into it and if it is right?

1020


Is there a built-in function in C that can be used for sorting data?

1179


Can you pass an entire structure to functions?

1077


What does a function declared as pascal do differently?

1039


What is non linear data structure in c?

966


List the difference between a "copy constructor" and a "assignment operator"?

957