What would you like to do?

Write a C program to arrange 7 numbers in ascending order?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .


int x;
printf("Enter the max number of array: ");
scanf("%d", &x);

int i;
int j;
int temp;
int a[x];

printf("Enter %d integer numbers: \n", x);
for (i=0;i<x;i++)
temp = a[j];
a[j] = a[i];
a[i] = temp;
printf("\n\nThe %d numbers sorted in ascending order are: \n", x);
int y = x - 1;

// this is a converted to c code, this program will allow you to input how many numbers you want and having the same result. as the other one ...

note: thank you wherever you are for writing this code thanks a lot!!!
13 people found this useful
Thanks for the feedback!

C program to arrange any numbers in ascending order?

include #include 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 integ

Java program to arrange any numbers in ascending order?

import java.util.*; class table { public static void main (String argsp[]) { Scanner in = new Scanner (System.in); int a,b,c,d=0; System.out.print ("\\n\\t Enter the number to

C plus plus program to arrange any numbers in ascending order?

Place the numbers in a linear sequence container such as a std::tr1::array or a std::vector. Use an array if the element count is a fixed size (static array) or a vector if th

Write a c program to arrange 10 numbers in descending order?

01 | /* C program to arrange or sort the array in the Descending order */02 | #include03 | #include04 | void main()05 | {06 | int ar[100],j,n,i,tmp;07 | 08 | printf(" Enter