0

I'm trying to write a code for class that basically takes a 4 digit input, scrambles the the places of each number so that the first digit is in the third digits place, and add 7 to each number. This is supposed to be simple encryption. I know my functions are wrong, but I threw this together for something to show, and I have no idea what I may be forgetting/doing wrong. If anyone could look this over and give me some tips, I'd much appreciate it. Thank you for taking the time to read this.

```
#include <iostream>
using namespace std;
int main()
{
int number, dig1, dig2, dig3, dig4, encryptnum;
cout << " Enter a four digit number to encrypt ";
cin >> number;
number%10 = dig1;
number = number/10;
number%10 = dig2;
number = number/10;
number%10 = dig3;
number = number/10;
number%10 = dig4;
encryptnum = (dig3 + 7)(dig4 + 7)(dig1 + 7)(dig2 + 7);
cout << " Encrypted Number "<< encryptnum <<end1;
return 0;
}
```