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

Whats s or c mean?

1020


Is it possible to have a function as a parameter in another function?

1072


What's the best way of making my program efficient?

1099


Explain what is the difference between text files and binary files?

1150


Are enumerations really portable?

1020


What does the c in ctime mean?

1087


What are pragmas and what are they good for?

988


What are types of functions?

1036


How do you do dynamic memory allocation in C applications?

1083


Explain the ternary tree?

1021


What is an expression?

1051


Why is c called a structured programming language?

1271


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

1921


What is const and volatile in c?

1044


What is huge pointer in c?

1082