program to find maximum of two numbers using pointers
Computer programmers use an array to arrange digits of a number in ascending order. The program uses character array to store the digits and a quick sort feature to sort them.
A flow chart can be used to write a program that can sort numbers. The program should be able to sort numbers by either ascending or descending order as needed.
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
Use the qsort() function ;)
You cannot arrange an array in two orders at the same time. To arrange them in ascending order, sort the elements using an appropriate sorting algorithm. To reverse the order, work inwards from both ends of the array, swapping the elements as you go.
#include #include void main() { int a[100],i,j,k,n; clrscr(); printf("How many number you want to genarate:"): scanf(" %d", &n); printf("Enter the numbers:"): for(i=0;i
Analyze the problem! Do it by your self for you to learn! -Your computer programming professor
(sort '(3 2 1) #'
Put the numbers in a vector and sort the vector. Then print it.
Yes.
Yes.