There are many ways to do this but i'm showing you three ways to print "Hello World" without putting any semicolon.
Solution:1
#include <stdio.h>
#include <conio.h>
void main( )
{
if(printf("Hello World"))
{
}
getch();
}
Solution:2
#include <stdio.h>
include <conio.h>
void main( )
{
swicth(printf("Hello World"))
{
}
getch();
}
Solution:3
#include <stdio.h>
#include <conio.h>
void main( )
{
while(printf("Hello World")) /*infinite loop*/
{
}
getch();
}
Solution:1
#include <stdio.h>
#include <conio.h>
void main( )
{
if(printf("Hello World"))
{
}
getch();
}
Solution:2
#include <stdio.h>
include <conio.h>
void main( )
{
swicth(printf("Hello World"))
{
}
getch();
}
Solution:3
#include <stdio.h>
#include <conio.h>
void main( )
{
while(printf("Hello World")) /*infinite loop*/
{
}
getch();
}
0 comments:
Post a Comment