#include "stdafx.h"
#define arraySize 20
#include
#define maxInt 4294967295

int factorial(int m) /* m>=1 */
{
int M = 1 ;
for(int i=1;i<=m;i++)
M = M*i;
return M;
}


int main()
{
int n = 0;
int A[arraySize];
for(n=0;n < arraySize;n++)
{
int Mi=1;
for(int j=0 ; j<n ;j++ )
{
Mi = Mi*2;
}
A[n] = Mi * factorial(n);

}
for(int i=0;i<arraySize;i++)
{
cout << A[i]<= arraySize || A[i]>maxInt)
{
return 1;
break;
}
}
return 0;
}

Related Articles

Quote Of The Day