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 there a way to compare two structure variables?

1057


write an algorithm to display a square matrix.

2640


When c language was developed?

1011


What is string function c?

967


Explain how can a program be made to print the line number where an error occurs?

1148


Explain what is a pragma?

993


what is uses of .net

1684


What are reserved words with a programming language?

1055


What is the purpose of void pointer?

986


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2579


How do I copy files?

1000


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2307


Explain can you assign a different address to an array tag?

1014


What math functions are available for integers? For floating point?

1076


Write a program to reverse a given number in c?

980