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

how could explain about job profile

1915


What is the difference between the local variable and global variable in c?

958


What is the difference between #include

and #include “header file”?

1020


What does sizeof int return?

1072


Explain what is the benefit of using const for declaring constants?

1025


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1071


What is header file in c?

1061


Explain modulus operator.

1046


What is a pointer on a pointer in c programming language?

1136


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3907


What is static memory allocation? Explain

1092


number of times a digit is present in a number

2033


What are data types in c language?

1048


When should the const modifier be used?

1099


Explain what is the difference between functions getch() and getche()?

1047