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
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
Social Sciences,
5 months ago
Math,
5 months ago
India Languages,
5 months ago
Hindi,
11 months ago
Math,
11 months ago
Math,
1 year ago
Science,
1 year ago