hi...i am worjig on project to display numbers entered by user..and display it in random order....i use devcpp..
and here is the code..it does compile but is not working properly..can anyone help me plz as quickly as possible..this is due within 4 days...
#include<iostream>
using namespace std;
int main(){
int nums[14],checknum[14],displaynum[14],position=0,num;
for(int a=0;a<15;a++){
cout<<"enter value num #:"<<a<<endl;
cin>>nums[a];
checknum[a]=nums[a];
}
for (int b=0;b<15;){
num=checknum[b];
for(int c=0;c<15;){
if(num>nums[c]){
position++;
}c++;}//2nd for loop
cout<<position<<endl;
displaynum[position]=num;
b++;
position=0;}
cout<<"Number are:";
for (int d=14;d>=0;)
{cout<<displaynum[d]<<","; d--;}
system("pause");
return(0);
}