Beecrowd Problem 1158 – (Sum of Consecutive Odd Numbers III) solution | C language

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


int main()


    int n,i = 1, j, k = 0, X, Y;

    scanf("%d", &n);

    for(i = 0;i < n;i++){

        scanf("%d %d", &X, &Y);


        for(j = 0;j < Y;j++){

            k += X;

            X += 2;;





    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