fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a, b;
  7. for(int i=10; i<100; i++)
  8. {
  9. a=i/10;
  10. b=i%10;
  11. if(i%(a+b)==0)
  12. cout<<i<<endl;
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5444KB
stdin
Standard input is empty
stdout
10
12
18
20
21
24
27
30
36
40
42
45
48
50
54
60
63
70
72
80
81
84
90