#include <iostream> #include <math.h> using namespace std; int main() { int a, b, c, n = 0, result = 0; int arr[8] = {0}; int&...