Computer Science, asked by vaidehi83, 9 months ago

How to make program in C++ program??????​

Answers

Answered by raju9736
1

Explanation:

the required answer is in the attatchment

Attachments:
Answered by tiger009
0

C++ Programming Language

Explanation:

//set header file

#include<iostream>

//set namespace

using namespace std;

//define main function

int main()

{

   //print message

   cout<<"Hello World";

   return 0;

}

Description of the program:

  • Header file is the important part of the C or C++ programming language because it contain the definitions of every pre-defined keywords or functions, different header files are used for the different purposes just like 'iostream' is the essential part for C++ and it contain the definition of 'cout' or 'cin' type keywords.
  • 'int' is the data type that contain integer values only and main() is the main and pre-defined function of the program which contain particular tasks like calling of function, creation of class object etc, withou it the program always incomplete.
  • 'cout' is the keyword that is used to print any string or output of any object or variable, in other hand 'cin' is used to get input from the user.

Learn More:

brainly.in/question/1651305

Similar questions