What i want to do it have the user put in a number, and then prints the answer of the number divided by all of the numbers below it (above one) such as 6 / 5 / 4 / 3 / 2 = 0.05. Help would be much appreciated.
double number = 0;
double newnumber = 0;
double result = 0;
double newresult = 0;
double newresults = 0;
int loop = 0;
using namespace std;
int main ()
{
cout <<"Welcome to the devisor infinite! put in a number and it will divide all numbers below it.\n";
cin >> number;
system("CLS");
cout <<" Processing...\n";
Sleep(600);
system("CLS");
double newnumber = number;
double loop = number;
double number = result;
do {
(result = number / number - 1);
number --;
continue;
}while (number);