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 is a scope resolution operator in c?

1277


What is dynamic memory allocation?

1337


How do I convert a string to all upper or lower case?

1122


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

2128


How can I sort a linked list?

1049


What is a structural principle?

1168


application attempts to perform an operation?

1978


Why do we use pointer to pointer in c?

1084


Explain the use of #pragma exit?

1181


C language questions for civil engineering

1720


What is wrong with this initialization?

1007


What is actual argument?

1063


What is meant by gets in c?

1185


Why header file is used in c?

1097


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1133