Thread: need help
View Single Post
Old 11-07-2004, 08:00 PM   #1 (permalink)
somnath
Registered User
 
Join Date: Oct 2004
Posts: 4
somnath is on a distinguished road
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
somnath is offline   Reply With Quote