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 / mwolo fabrice

#include<stdio.h>
#include<conio.h>
void main()
{
int n=100,i;
scanf("%d",&i);
if(i<n)
{
printf("\n %d\n",i);
}
getch();
}

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exit() function?

976


write a program to find the given number is prime or not

4675


How can you tell whether two strings are the same?

1217


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2060


Why do we need a structure?

989


Explain how can you determine the size of an allocated portion of memory?

1059


How do you use a pointer to a function?

1039


What are extern variables in c?

956


What is typedf?

1081


Write a program to find the biggest number of three numbers in c?

1017


Is Exception handling possible in c language?

2004


What does %p mean c?

1024


code for replace tabs with equivalent number of blanks

2106


What is sizeof in c?

965


What is c language and why we use it?

1015