Computer Science, asked by anindyaadhikari13, 3 months ago

C or C++ program to display "Hello World" on the screen without using any library function, if else. Don't spam. I am bored of seeing irrelevant answers. ​

Answers

Answered by Berseria
10

Answer:

In C++ ;

C++ Program to display "Hello World"

The Required C++ Program :

Input :

#include <iostream>

using namespace std ;

int main ( )

{

cout <<"Hello World"<<end1;

return 0 ;

}

Output :

Hello World

Structure Of a C++ Program :

// comment line

#include <iostream>

using namespace std ;

int main ( )

{

.........

Body of the Program

..........

return 0 ;

}

The first is a comment line. The next line begins with a # symbol is known as the preprocessor directive. The next line corresponds to the beginning of the main function declaration. The next set of lines contains statements enclosed within a pair of braces and are known as the body of program.

Answered by MrMonarque
7

\Large{\red{\underline{\underline{\sf{AnSweR:}}}}}

For "C" Program

#include <stdio.h> 

 

int write(int filedes, const char *buf, unsigned int nbyte); 

int main( int argc, char** argv ) 

write(1, "Hello World!\n", 13); 

 

return 0; 

 

OUTPUT: Hello World! 

Brainly> Hello World! 

/* Hello World program */ 

 

#include<stdio.h> 

 

main() 

printf("Hello World"); 

Hope It Helps You ✌️

Similar questions