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 program to produce the following output:
1
2
3
4
5
6
7
8
9
10

Answer Posted / sagarraje nimbalkar

// using If else

#include<stdio.h>
#include<conio.h>
void main()
{
int i=1;
while(i<=10)
{
printf("\n%d",i);
i++;
}
}

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data structures in c and how to use them?

1222


How many bytes are occupied by near, far and huge pointers (dos)?

1219


Explain how can I write functions that take a variable number of arguments?

1131


what are non standard function in c

1969


How #define works?

1161


How do I create a directory? How do I remove a directory (and its contents)?

1223


Where static variables are stored in memory in c?

1052


Is this program statement valid? INT = 10.50;

1231


Do character constants represent numerical values?

1399


how can use subset in c program and give more example

2048


What is the difference between malloc() and calloc()?

1983


Combinations of fibanocci prime series

1666


What is a buffer in c?

1056


Write a program which returns the first non repetitive character in the string?

1172


What is calloc()?

1133