#include <iostream> #include <math.h> using namespace std; class solution{ public: void component(int num){ int i = 2; &nbs...