New to C and have been given a small task to complete the question is as follows:

Write a C program that uses an array to store the following values and a loop to display any value which is greater than 50.


insert
Code:
#include <stdio.h>
#include <string.h>

int main( void )
{
/* array type is integer */
int value[] = { 20, 40.2, 22, 42.5, 36, 55.78, 39.4, 61, 62, 73.11 };
int counter, total;
for ( counter = 50, total = 50; counter > 50; counter++ )
{
/* counter variable is acting as the array index */
/* add the value of the current array element */
total += value[ counter ];
}
printf( "%d\n", total == counter );
}


This is the soursecode i have managed so far but it only displays an interger of 1,are there any suggestions as to where i may be going wrong? Please help as i am starting to see doubel