Output
" HELLO WORLD "
' HELLO WORLD '
Step 1: START
Step 2: Print \" HELLO WORLD \".
Step 2: Print \' HELLO WORLD \'.
Step 3: END
/* Print "Hello World" in double quote*/
#include <stdio.h>
int main()
{
printf(" \" HELLO WORLD \" ");
printf("\n");
/* Print 'Hello World' in single quote*/
printf("\' HELLO WORLD \' ");
return 0;
}
/* Print "HELLO WORLD" in double quote */
#include <iostream>
using namespace std;
int main()
{
cout<<" \" HELLO WORLD \" ";
cout<<"\n";
/* Print 'Hello World' in single quote*/
cout<<"\' HELLO WORLD \' ";
return 0;
}
" HELLO WORLD "
' HELLO WORLD '
advertisment