fork download
  1. #include <stdio.h>
  2.  
  3. unsigned long min = -5;
  4. unsigned long max = 5;
  5.  
  6. int main()
  7. {
  8. if ((long)min < 0) {
  9. printf("[%d..%d]", (long)min, max);
  10. }
  11. else {
  12. printf("[%lu..%lu]", min, max);
  13. }
  14. }
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
[-5..5]