TÓPICO

Alguém consegue me dizer pq não esta aceitando?

GabrielBaldezGalahad perguntou 2 years ago

include

include

include

include

using namespace std; int main() {

int x,y,total,i; cin>>x>>y; if(x<y){ for(i=x+1;i<y;i++){ if (i%2!=0){ total = total+i; } x++; } cout << total << endl; }else{ for(i=y+1;i<x;i++){ if (i%2!=0){ total = total+i; } y++; } cout << total << endl; } return 0; }

Este tópico ainda não foi respondido. Seja o primeiro!

Lembre de não publicar soluções. Sua publicação pode ser revisada por nossos moderadores.