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

#include<stdio.h>
int i;
void main()
{
if(i<=100)
{
printf("%d ",i);
i++;
main();
}
if(i>100)
exit(0);
}

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2121


What are derived data types in c?

1009


How are 16- and 32-bit numbers stored?

1238


What is action and transformation in spark?

1082


What is the role of && operator in a program code?

1017


Explain the difference between malloc() and calloc() in c?

1005


What is static volatile in c?

976


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1064


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1729


how to write a c program to print list of fruits in alpabetical order?

2241


What does the file stdio.h contain?

999


what is event driven software and what is procedural driven software?

2508


Which is the best website to learn c programming?

1032


Why is structure important for a child?

1049


string reverse using recursion

2374