Given an unsorted singledimensional nit array numb of 100 el

Given an unsorted, single-dimensional nit array numb) of 100 elements, write a short C program using a doubly nested loop that sorts the array In increasing order.

Solution

#include<stdio.h>

#include<conio.h>

main

{

int i,j,arraynum[150],N,temp;

printf(\"Enter the number of elements in the arraynum[]= \");

scanf(\"%d\",&N);

printf(\"Enter each elements of arraynum[] one by one\");

for(i=0;i<N;++i)

{

printf(\"Enter element of arraynum[%d]=\",i);

}

for (i = 0; i < N; ++i)

}

 Given an unsorted, single-dimensional nit array numb) of 100 elements, write a short C program using a doubly nested loop that sorts the array In increasing or

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site