answersLogoWhite

0


Best Answer

Put the numbers in a vector and sort the vector. Then print it.

User Avatar

Wiki User

โˆ™ 2014-07-25 01:47:21
This answer is:
User Avatar
Study guides
๐Ÿ““
See all Study Guides
โœ๏ธ
Create a Study Guide
4.18
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
11 Reviews

Add your answer:

Earn +20 pts
Q: Write a program in c plus plus to print given numbers in ascending order?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Write a program to sort the given names in ascending order using pointers?

Write a program using a while loop to print the numbers 2 to 10 in increments of two. The output of your program should be 2 4 6 8 10


Write C program that implement the insertion sort a given list of integer in ascending order?

5


Write a program which give given number in ascending order in c language?

what is c laungagee?????e


Write a program for which give number in ascending number?

the following program will display all numbers given in the array in ascending order #include<stdio.h> void main() { int i,h,p; int numbers[10]={5,8,3,2,6,7,9,4,1,10}; for(p=0;p<=8;p=p+1) { for(i=0;i<=8;i=i+1) { if(numbers[i]>numbers[i+1]) { a=numbers[i]; numbers[i]=numbers[i+1]; numbers[i+1]=a; } } } for(i=0;i<=9;i=i+1) { printf("%d ",numbers[i]); } }


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


How do you write a c program to find maximum and minimum of a set of numbers?

How do you write a c program to find maximum and minimum number in a given array?


Write a program to find the sum of squares of the given number?

Algorithm and Flowcharts for a program to compute the sum of the squares of the numbers for a given range used for loop


How do you write a program that removes all occurrences of a given X in a given sequence of numbers?

You do nothing! A sequence of numbers will contain no X and so nothing needs doing!


How to find the smallest number?

When you are given some numbers just arrange them in ascending order and you will the smallest number which can be made out of those given numbers.


How do you write a c program sum of ODD Numbers in the Given Range?

Reference: cprogramming-bd.com/c_page4.aspx#ODD%20 Numbers


A simple java program for sorting numbers?

class Sort { public static void main(String args[]) { int arr; int arr = 4,8,3,2,5,6; array.sort(arr); System.out.println("sort the given numbers in ascending order"); } }

People also asked