fork download
  1. // A program that turns the EGN to a date (DD.MM.YY)
  2. #include <iostream>
  3. #include <cmath>
  4. using namespace std;
  5.  
  6. int main() {
  7. int egn, d, m, y;
  8. cin >> egn;
  9.  
  10. printf("%d.", (egn/1000000));
  11. printf("%d.", (egn/10000)%100);
  12. printf("%d", egn%10000);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3472KB
stdin
11111993
stdout
11.11.1993