fork download
  1. #include <stdio.h>
  2. int main() {
  3. int AD, BE;
  4.  
  5. printf("Input BE: ");
  6. scanf("%d", &BE);
  7.  
  8. AD = BE - 543;
  9.  
  10. printf("The year in AD is: %d\n", AD);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Input BE: The year in AD is: 32223