Alright so I'm in a computer programming class and I was given the following problem:
Write a problem that takes an integer value and multiplies each of the digits together. 4 digit numbers only.
IE; What number do you want to process? 2684
Starting number 2684
End result 384
I know how to start the begging of the program, but i dont understand how to have it to where you can type in all four digits and then it will multiply each number by the other.
Also, what are some ways to change the color scheme of the program? I know how it works using CMD, but in Visual C++ its totally different aha.
Pipe it into a stream, and then extract the digits one at a time. Then you can do whatever you want to it.
using namespace std;
int num1, num2, num3, num4;
cout<<"Enter four random digits."
okay so after this im not sure to make it multiply each number by itself, help!
Last edited on
What The ferror
Not supposed to just post an answer to questions that are homework related.