View Single Post
Old May 26th, 2006, 10:09 AM   #3
lilmul123
Newbie
 
Join Date: Mar 2006
Posts: 19
Rep Power: 0 lilmul123 is on a distinguished road
here's what I have thus far. the problem im having now is with the do-while loop:

#include "conio.h"
#include "stdio.h"
#include "iostream.h"

int main()
{
int userinput;
int i;
int number[15];
char choice;
clrscr();
do{
for ( i = 0; i < 15; i++)
{
cout << "Please enter a number:\n";
cin >> userinput;
number[i]=userinput;
}
{
cout << "Do you want to enter another number?";
cin >> choice;
}
while(choice=='y');
getch();
}
lilmul123 is offline   Reply With Quote