Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- It sums the first 50 even integers.
- */
- #include <stdio.h>
- int main(){
- int k, n, s = 0;
- for(n = 0; n < 101; n = n + 2){
- s = s + n;
- }
- printf("%d\n", s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement