Computer Science, asked by adityabhargav1425, 8 months ago

how to reverse a given list of numbers[1,2,3,4,5,6,7] without using reverse function and by usig for loop

Answers

Answered by diyam55
0

Explanation:

if in c++ pls follow the given steps:

int main()

{

char rev,a[]= {1,2,3,4,5,6,7};

for(int I=0;I<7;I++)

{

rev=a[I];

a[I]=a[n-1];

a[n-1]= rev;

}}

Similar questions