fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. intnum;
  5. for (num = 1; num<= 11; num++)
  6. {
  7. if (num % 3 == 0)
  8. putchar('$');
  9. else
  10. putchar('*');
  11. putchar('#');
  12. putchar('%');
  13. }
  14. putchar('\n');
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5524KB
stdin
#include <stdio.h>
int main(void)
{
intnum;
for (num = 1; num<= 11; num++)
{
if (num % 3 == 0)
putchar('$');
else
putchar('*');
putchar('#');
putchar('%');
}
putchar('\n');
return 0;
}
stdout
Lab 8, Working With structs
Programmer: Maiar Khattab
Editor(s) used: Code Blocks 13.12
Compiler(s) used: Code Blocks 13.12
File: prog.cpp
Complied: May 27 2022 at 08:48:41

noon is 12:0:0
 midnight is 0:0:0
 supper  is 6:0:0
bedtime is 11:30:0
-�_� [�� is 1912554712:32766:-412138496