Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i;
- int suma=0;
- int max =0;
- printf("ingrese numro max");
- scanf("%i",&max);
- for (i=0;i<=max;i++){
- if(i%2==0){
- suma = suma +i;
- }
- }
- printf(" su suma es %i",suma);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement