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!!!
9 people found this useful
Thanks for the feedback!

Your 60-day jail sentence was suspended when you decided to check into a rehab facility. What motivated you to go to rehab?

View Full Interview

Addressing the Dilemma of Using Numbers in Writing

If your writing piece includes the description of numbers or dates, you may find yourself wondering how to express them. Many sources vary on this topic but the one rule that (MORE)

Writing for Skyword

Writing is one of the best paying and most flexible work from home jobs, but many people starting out do not have the skill set or experience to get hired. Skyword offers a un (MORE)

Scrivener is a Scene Processor for Long-Form Writing

Unlike most word processors, Scrivener lets writers revise and reorder their work easily by dragging and dropping, keep their research notes easily accessible within the same (MORE)

Learning to Develop Apps on Your Mac or iOS Device

Do you have an idea for an app for your Mac or iOS device? Wouldn't it be great to be able to turn your ideas into reality? This article will help you get on the road to learn (MORE)

Protective Orders and Divorce

Protective orders are an important safeguard for keeping people safe when there is domestic violence. Being aware of how an order works within a divorce is an important part o (MORE)

What would you like to do?

Write a program to find the largest of three numbers and print the output in ascending order?

void main() { int a,b,c; clrscr(); printf("Enter the value of a:"); scanf("%d",&a); printf("\\nEnter the value of b:"); scanf("%d",&b); printf("\\nEnter the value of c:"); sca (MORE)

What would you like to do?

How do you write a java program to sort n numbers in ascending order?

It should be fairly simple to program a bubble sort (though this is not very efficient for large arrays). If elements #0 and #1 of an array are out of order, exchange them. Th (MORE)