Why does output equal zero in this code? Number 1 with weight of 2, number two with weight of 3 and number three with weight of 5. I can not understand why output = 0.
#include <stdio.h>
int main ()
{
float A ,B, C ,MEDIA=0 ;
scanf("%f%f%f",&A ,&B,&C);
MEDIA+=1/2*A + 1/3*B + 1/5*C;
printf("MEDIA = %.1f", MEDIA );
return 0;
}