Răspuns :

#include <iostream>

using namespace std;

int m, n, aux, x;

int main()

{

   cout << "n=";

   cin >> n;

   cout << "m=";

   cin >> m;

   if ( n % 2 == 0) aux = n+1;

   else aux = n+2;

   cout << aux << " ";

   x=aux;

   while (x-aux <= m-2) {

      x = x+2;

      cout << x << " ";

   }

   return 0;

}

Vezi imaginea OiLoveYouO

ID Alte intrebari