#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
A flowchart for a program that accepts and displays the factorial of a number would include the following steps: Start, Input the number, Initialize a variable for the factorial, Use a loop to calculate the factorial by multiplying the variable by each integer up to the number, Output the result, and End. Pseudocode for the same program would look like this: START INPUT number factorial = 1 FOR i FROM 1 TO number DO factorial = factorial * i END FOR OUTPUT factorial END
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