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...

Write a C program to print 1 2 3 ... 100 without using
loops?

Answer Posted / sutanu

void main ()
{
static int i;
if (i <= 100)
{
printf ("%d\n", i);
i++;
main ();
}
}

Is This Answer Correct ?    53 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can variables be characterized?

2132


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

2474


Why is c so popular?

1120


What does 3 periods mean in texting?

1014


What language is c written?

976


What is cohesion and coupling in c?

987


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1188


What are qualifiers and modifiers c?

944


Without Computer networks, Computers will be half the use. Comment.

2255


What is a function simple definition?

1033


Why is void main used?

1036


Explain what are the different file extensions involved when programming in c?

1054


Explain the use of bit fieild.

1100


What is the best style for code layout in c?

1052


What is function what are the types of function?

951