C ++ code to find out the smallest perfect square X which when added to N yields another perfect square number .
#include <bits/stdc++.h> NEW_LINE using namespace std ; long SmallestPerfectSquare ( long N ) {