## C Program to arrange 10 numbers in ascending order

```/*C Program to arrange 10 numbers in ascending order*/

#include<stdio.h>

#include<conio.h>

void main()

{

int i,j,temp,a[10];

clrscr();

printf(“Enter 10 integer numbers: \n”);

for(i=0;i<10;i++)

scanf(“%d”,&a[i]);

for (i=0;i<10;i++)

{

for(j=i+1;j<10;j++)

{

if(a[i]>a[j])

{

temp=a[j];

a[j]=a[i];

a[i]=temp;

}

}

}

printf(“\n\nThe 10 numbers sorted in ascending order are: \n”);

for(i=0;i<10;i++)

printf(“%d\t”,a[i]);

getch();

}```
```
```
```
```
```
```
```
```
`OUTPUT:`
```
```
```
Enter 10 integer numbers:

2

9

7

4

3

6

8

1

5

10

The 7 numbers sorted in ascending order are:

1     2       3       4       5            6       7       8       9      10```
```
```
```
```
```
```
```
```
```
```
`------------------------------------------------`
`Answers questions like`
```
```
```
```
```
Write a c program to sort 10 numbers in ascending order
Write a program to arrange a list of numbers in ascending order
How to write a program for arranging numbers in ascending order
Write a c program to arrange numbers in ascending order
C++ Arrange 10 random integers in descending order?
Write a C program to sort a string in ascending order.?
Program to sort numbers in ascending order and use integer point
Sort 10 Numbers In Ascending Order - C And C++
Write a simple program in java to accept 10 number```

# Partner Sites

## SqliteTutorials.com

### Stuff I use to make videos

Windows notebook - http://amzn.to/2ADOPrW

Apple MacBook Pro - http://amzn.to/2AC0WG2

Ubuntu notebook - https://amzn.to/2GE4giY

Desktop - http://amzn.to/2zct252

Microphone - http://amzn.to/2AC1kV0

notebook mouse - http://amzn.to/2BmeZ2d

### Online Courses to learn

Java - https://bit.ly/2H6wqXk

AngularJS - https://bit.ly/2qebsLu

Python- https://bit.ly/2Eq0VSt

Android - https://bit.ly/2qaRSAS

Linux - https://bit.ly/2IwOuqz

AWS Certified Solutions Architect - https://bit.ly/2JrGoAF

Modern React with Redux- https://bit.ly/2H6wDtA

MySQL - https://bit.ly/2qcF63Z