int i = 0;
int A[5];

cin >> i;
A[4] = i;

while(A[4] < 10)
    A[4] ++;

cout << A[4];

This is not C code, it is C++ (cin&cout)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.