Computer Science, asked by iwillnottellu, 7 months ago

Write a program in C to add first 6 even numbers using for loop.

Answers

Answered by schoolgurugovindsing
3

Answer:

I hope it will help you please follow me and mark me as brainliest please

Attachments:
Answered by kashvi1283
1

find sum of even numbers we need to iterate through even numbers from 1 to n. Initialize a loop from 2 to N and increment 2 on each iteration. The loop structure should look like for(i=2; i<=N; i+=2) . Inside the loop body add previous value of sum with i i.e. sum = sum + i.........

HOPE IT WILL HELP U

&

PLZZZZZZ FOLLOW ME

&

.ARK ME AS BRAINLIEST

&

AND ALSO GIVE ME THANKS

Similar questions