Guest User

Untitled

a guest
Nov 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void main()
  5. {
  6. int Sum = 0;
  7. for (int i = 10; i < 1001;i++)
  8. {
  9. int Temp1 = 1;
  10. int Temp2 = i;
  11. while (Temp2>0)
  12. {
  13. Temp1 *= (Temp2 % 10);
  14. Temp2 /= 10;
  15. }
  16. Sum += Temp1;
  17. }
  18. cout << Sum << endl;
  19. }
Add Comment
Please, Sign In to add comment