| need help Write a complete program that asks user to input 12 numbers of any types or domain (i.e. positive or negative) and record user's response into, an array.
Process the input by manipulating it so that the numbers are arranged in the array in an ascending order (e.g. -1.2, -1, 0, 3, 4, 4.05, 4.1, 5).
After the manipulation is complete, print the resulting values in the array in one line.
-----
here is what i got
#include <iostream>
using namespace std;
int main(void)
{
double Numbers[12];
cout<<"Enter 12 numbers: ";
for ( int x = 0; x < 12; x++ )
cin>> Numbers;
cout<<endl;
}
i know i gotta do something like "x + 1 == 12" or something...but duno what
hope u guys can help me out |