fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. /**
  8.   * Escreva a sua solução aqui
  9.   * Code your solution here
  10.   * Escriba su solución aquí
  11.   */
  12.  
  13. int a, b, par0, par1, soma;
  14.  
  15. cin >> a >> b;
  16.  
  17. par0 = a%2;
  18. par1 = b%2;
  19.  
  20. do {
  21. a = a+2;
  22. cout << "A " << a << endl;
  23. cout << " B " << b << endl;
  24. } while (a < b-1);
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0s 4372KB
stdin
-5
6
stdout
A -3
 B 6
A -1
 B 6
A 1
 B 6
A 3
 B 6
A 5
 B 6