#include <stdio.h>
#include <conio.h>
void main()
{
int n ,i,j,temp,a[12]; //in a[] specify some number .
printf("Enter the no of inputs:");
scanf("%d", &n);
printf("Enter %d integer numbers :", n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for (i=0;i<n;i++)
for(j=i+1;j<n;j++)
{
if(a[i]>a[j])
{
temp=a[j];
a[j]=a[i];
a[i]=temp;
}
}
printf("THE %d NUMBERS SORTED IN ASCENDING ORDER ARE :\n", n);
for(i=0;i<n;i++)
{
printf("%d ",a[i]);
}
getch();
}
ten
first sort the ten numbers in descending order and print the first number. That will be the largest no
it is the number of protons.the atomic number.
question clarity
The atomic number is what arranges the elements (1,2,3,4........). It also tells the number of protons
mass
Numbers are said to be in descending order when they are arranged from the largest to the smallest number.
307900 ascending 307898 descending
Descending order.
An Ascending # is a # That Is Getting Larger. A Descending # is a # That Is Getting Smaller.
Descending (in a sequence) means that a the next number is "more negative" or "closer to negative infinity" or "less positive" or "further from positive infinity" or if n is a number in a sequence and n+1 is the next number then n/n+1 > 1
It arranges all known elements in a chart of rows and colums of increasing atomic number.