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

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

Is This Answer Correct ?    29 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers? What are stacks and queues?

1157


How can I split up a string into whitespace-separated fields?

1058


What is the difference between malloc() and calloc() function in c language?

1083


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

2345


Explain what’s a signal? Explain what do I use signals for?

1167


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1218


Why we use conio h in c?

1242


Explain output of printf("Hello World"-'A'+'B'); ?

1500


How to draw the flowchart for structure programs?

9345


How to get string length of given string in c?

1067


What 'lex' does?

1187


How can I write a function analogous to scanf?

1188


Write a program to show the change in position of a cursor using c

1072


What are run-time errors?

1123


When the macros gets expanded?

1427