fork download
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. int main() {
  5. time_t now = time(NULL);
  6. struct tm* local = localtime(&now);
  7. printf("Happy new %d!",local->tm_year +1+ 1900);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Happy new 2025!