Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- //Slide 13.
- int main(){
- int a, b, soma = 0, cont;
- scanf("%d %d", &a, &b);
- do{
- cont = a + 1;
- soma = cont + soma;
- a = a + 1;
- }while(a < (b-1));
- printf("%d", soma);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment