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 break in c?

1052


Why should I use standard library functions instead of writing my own?

1274


Can we compile a program without main() function?

1132


What is a string?

1127


Is main is a keyword in c?

1130


What is "Duff's Device"?

1175


Can you write the function prototype, definition and mention the other requirements.

1146


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1836


Explain what is the difference between the expression '++a' and 'a++'?

1221


Compare array data type to pointer data type

1043


What is the purpose of & in scanf?

1078


How can you tell whether two strings are the same?

1259


Differentiate between #include<...> and #include '...'

1067


What is #include cctype?

1130


How arrays can be passed to a user defined function

1029