Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- EXERCICIO NUMERO 2
- */
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int cont, sum;
- sum = 0;
- printf("Os multiplos de 11 entre (400,300) sao:\n");
- for(cont = 400; cont >= 300; cont--){
- if(cont % 11 == 0){
- printf("Multiplo de 11: %i\n", cont);
- sum += cont;
- }
- }
- printf("Soma dos multiplos de 11 entre (400,300) = %i\n", sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement