int main() { int a = 5, b = 10; int Result = sumOfSquare(a,b); printf("Sum Of Squares is %d\n",Result); return 0; }
int main(int argc, char **argv) { printf("Algorithm start, please wait...\n"); // With scalability in mind, we don't want our algorithm to be fixed int size = 100, difference = 0; // By using this two useful functions we don't have much to do difference = squareOfSum(size) - sumOfSquare(size); printf("Algorithm end.\n"); }
int projectEuler_006() { return squareOfSum(100) - sumOfSquare(100); }