CPP program to find all factorial numbers smaller than or equal to n .
#include <iostream> NEW_LINE using namespace std ; void printFactorialNums ( int n ) { int fact = 1 ; int x = 2 ; while ( fact <= n ) { cout << fact << " ▁ " ;