C Programming Code Examples C > Miscellaneous Code Examples C Program to Print any Print Statement without using Semicolon C Program to Print any Print Statement without using Semicolon Use the print statement in the if or else condition. #include <stdio.h> void main() { if(printf("Happy Codings - C Programming Language")) { } } 1. In the main function use the print statement stating "Happy Codings - C Programming Language" inside the if condition. 2. Exit.