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 / harsha

#include<stdio.h>

int i=0;

void main()
{
if(i==0)
clrscr();
if(i<100) {
printf("%d \t",++i);
main(); }
else {
getch();
exit(0); }
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should malloc(0) do?

1051


What is cohesion and coupling in c?

981


How can I call fortran?

987


What should malloc() do?

1096


What does *p++ do?

972


What is the use of header?

1046


Why does not c have an exponentiation operator?

995


What are the features of c languages?

1025


Explain the binary height balanced tree?

1121


Why does the call char scanf work?

1150


#include { printf("Hello"); } how compile time affects when we add additional header file .

1848


What is hashing in c?

1094


What does & mean in scanf?

1042


Can you please explain the difference between syntax vs logical error?

1131


How do we print only part of a string in c?

969