Answers for "Reverse Arrays"

0

Reverse Arrays

#include <stdio.h>

int main() {
   int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
   int loop;

   for(loop = 9; loop >= 0; loop--)
      printf("%d ", array[loop]);
      
   return 0;
}
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language