Multiple math problems

Hi i'm trying to get the result of one math equation to go over and be inserted into another equation. Is there a way to do that? I mainly want a user inputed number to be divided by 26, then if there are numbers left over that are multiples of 10 I want them to be divided by 10. This code isn't finished but it's what i'm working with so far.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
using namespace std;

int main (void)
{

	double dnumber1 = 0.0;
	double dnumber2 = 0.0;
	double dnumber3 = 0.0;
	double dnumber4 = 0.0; 

cout << "please Insert a number. " << endl; 
cin >> dnumber1;
								 
		dnumber3 = (dnumber1 / 26);
			if(dnumber3 > 1){
                        << dnumber4 << endl << endl; 
                        }
			if(multiple == 10)
			{
			 << dnumber2 <<endl <<endl;
			}
			
		dnumber2 = (dnumber1 / 10);
			if(dnumber2 > 1)
			{
			<<dnumber1 <<endl <<endl;
			}
	
	return 0;

}
Topic archived. No new replies allowed.