int i = 0;
int A[5];
cin >> i;
A[4] = i;
while(A[4] < 10)
A[4] ++;
cout << A[4];
denny61302 0 Newbie Poster
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
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.