Put the numbers in a vector and sort the vector. Then print it.
To write a C++ program to display the student details using class and array of object.
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
5
what is c laungagee?????e
How do you write a c program to find maximum and minimum number in a given array?
To write a C++ program to display the student details using class and array of object.
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
5
what is c laungagee?????e
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]); } }
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 number in a given array?
Algorithm and Flowcharts for a program to compute the sum of the squares of the numbers for a given range used for loop
You do nothing! A sequence of numbers will contain no X and so nothing needs doing!
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.
Reference: cprogramming-bd.com/c_page4.aspx#ODD%20 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"); } }