You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
464 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. #include "c2logic/builtins.h"
  2. /*expected output:
  3. 5678
  4. 0246
  5. 0 is not 3
  6. */
  7. extern struct MindustryObject message1;
  8. void main(void) {
  9. int i;
  10. for (i = 5; i < 9; i++) {
  11. printd(i);
  12. }
  13. i = 0;
  14. print("\n");
  15. do {
  16. if (i % 2 == 1) {
  17. i++;
  18. continue;
  19. }
  20. printd(i);
  21. if (i == 6) {
  22. break;
  23. }
  24. ++i;
  25. } while (i < 10);
  26. print("\n");
  27. i = 0;
  28. printd(i);
  29. if (i == 3) {
  30. print(" is 3");
  31. } else {
  32. print(" is not 3");
  33. }
  34. print("\n");
  35. printflush(message1);
  36. }