fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int i, j = 1;
  5.  
  6. for (i = 1; i <= 25; i++) {
  7. if (i == 1 || i == 7 || i == 13 || i == 19 || i == 25) {
  8. printf("* ");
  9. } else {
  10. printf("%d ", i);
  11. }
  12.  
  13. if (j % 5 == 0) {
  14. printf("\n");
  15. }
  16. j++;
  17. }
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
* 2 3 4 5 
6 * 8 9 10 
11 12 * 14 15 
16 17 18 * 20 
21 22 23 24 *