Знайти значення 1 * 3 * 5 * … * 101 C++

Ответы

Ответ дал: wherethefux
1

#include <iostream>

using namespace std;

int main()

{

   int i = 1;

   int result = 1;

   while (i <= 101)

   {

       result *= i;

       i += 2;

   }

   cout << result << endl;

   return 0;

}

Вас заинтересует