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

Why C language is a procedural language?

992


What is data structure in c and its types?

1038


Write a program to print "hello world" without using a semicolon?

1025


what do you mean by inline function in C?

1026


What does 1f stand for?

1107


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5420


What is pointer & why it is used?

1079


How do you do dynamic memory allocation in C applications?

1063


What are the types of i/o functions?

1282


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1067


How do we open a binary file in Read/Write mode in C?

1208


How does struct work in c?

1040


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1199


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3880


What are 3 types of structures?

1039