I am trying to reverse the order of words in a string, but my output is a bunch of junk that makes no sense. I don't know what is the problem, maybe the loops are broken.

Appreciate it if someone can explain what is wrong with my code below. I still new to C programming and this kind of problem is kind of frustrating.

```
#include<stdio.h>

int main()

{
   //declare variable
   char string[100], rev_string[100];

   //declare number of loop 
   int i, j, len;

   printf("enter the string: ");
   scanf("%s",string);

   //finding the length
   len = strlen(string);
   printf("strings length: %d\n", len);

   for (i = len - 1; i >= 0; i--)
       for (j = 0; j < len - 1; j++)
           rev_string[j] = string[i];

   rev_string[j] = '\0';

   if (strcmp(string, rev_string) == 0)
       printf("rev_string: %s is a palindrome", rev_string);

   else
       printf("rev_string : %s is not a palindrome words",rev_string);

return(0);

}

```