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

What is union and structure?

1186


Is printf a keyword?

1257


What are all different types of pointers in c?

1058


Linked lists -- can you tell me how to check whether a linked list is circular?

1131


Explain how many levels deep can include files be nested?

1116


Explain pointers in c programming?

1157


What is meant by type specifiers?

1179


What is the use of define in c?

1103


How can I run c program?

1230


c program for searching a student details among 10 student details

2139


What is the use of a ‘’ character?

1140


Explain what are the advantages and disadvantages of a heap?

1124


Who is the main contributor in designing the c language after dennis ritchie?

1051


Tell me is null always defined as 0(zero)?

1130


What is extern variable in c with example?

1053