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 / praveen

#include<stdio.h>
#include<stdlib.h>
void prav(int);
main()
{
int i=1;
prav(i);
}

void prav(int j)
{
if(j<101)
{printf("%d\n",j);
j++;
prav(j);}

else
exit(0);


}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c easier than java?

1010


What is table lookup in c?

1048


When is the “void” keyword used in a function?

1440


When should we use pointers in a c program?

1098


Is null always equal to 0(zero)?

1007


Implement bit Array in C.

1109


Explain why C language is procedural?

1171


what are the facialities provided by you after the selection of the student.

2196


Why static variable is used in c?

998


How can you increase the size of a dynamically allocated array?

1152


Where are local variables stored in c?

996


What oops means?

951


where are auto variables stored? What are the characteristics of an auto variable?

1028


Do you know the use of fflush() function?

1025


how to capitalise first letter of each word in a given string?

1886