input Integer output in column

I tried asking for help, but i haven't gotten any yet. My program that I've been working on is meant to ask for an integer and then output in a column from 1 to whatever integer was inputted. For example

Enter a value N == > 6

your numbers are == > 1 2 3 4 5 6

this is what i could figure out so far.

// final.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <ctime>

using namespace std;

const unsigned int Array = 10;
// ==============================
int main() {

char GoAgain;
int C[Array];
int ii = 0;
do {
int A;
cout << "Enter a value ==> ";
cin >> A;

for (ii = 0; ii < Array; ii++) {
cout << "Your numbers are == > " << C[A] << endl;
}
for (ii = 0; ii = Array; ii++) {
cout << endl;
}






cout << "Hey Buddy! Want to go again? " << endl;
cin >> GoAgain;
} while (GoAgain == 'y' || GoAgain == 'Y');


return 0;


}//Function main()

OP: be patient and don't multi-post http://www.cplusplus.com/forum/general/204236/
Topic archived. No new replies allowed.