Beecrowd Problem 1079 – “Weighted Averages” solution( Bangla ) | C language

**Before watching this make sure that you’ve tried enough**

#include <stdio.h>

int main()
    int n, i;
    float a, b, c, total, avg;
    scanf("%d", &n);
    float res[n];
    for(i = 0;i < n;i++){
    scanf("%f %f %f", &a, &b, &c);
    total = a*2.0 + b*3.0 + c*5.0;
    avg = total / 10;
    res[i] = avg;
    for(i =0;i < n;i++){
    printf("%.1f\n", res[i]);

    return 0;


If this solution helped you, please share this with your friends.
And if you have anything to say, let me know in the comment section.
More solutions are coming so Like our Facebook page and Subscribe to our YouTube channel to stay connected.

Leave a Comment