+ 10
CHALLENGE: WAP to get an array and print its reverse
9 Respostas
+ 6
@Timon it's Write a Program (WAP)
+ 3
https://code.sololearn.com/cPCcVONJH5o5/?ref=app
0
The code gets user input and turns every digit in the number into array items then reverses it
https://code.sololearn.com/WEFwgxRooITM/?ref=app
0
There's std::reverse() in C++.
0
const int size;
void reverse( int A[size] )
{
cout<< "enter the array" << endl;
for ( int i=0; i< size; i++)
{
cin>> A[i] ;
int j;
}
if ( j= size-1)
{
for (j=size -1; j>0; j--)
cout<< A[j];
}
}
// reply if u see any mistake
- 1
What's WAP?
- 1
@vickyvirus Do you know about the data containers of the standard library?