Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main()
- {
- int Sum = 0;
- for (int i = 10; i < 1001;i++)
- {
- int Temp1 = 1;
- int Temp2 = i;
- while (Temp2>0)
- {
- Temp1 *= (Temp2 % 10);
- Temp2 /= 10;
- }
- Sum += Temp1;
- }
- cout << Sum << endl;
- }
Add Comment
Please, Sign In to add comment