write a basic c++ program
Answers
Answered by
19
INPUT:
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr( );
cout <<\n "Hello World";
getch( );
}
OUTPUT:
Hello world
Answered by
4
Answer:
Now that you have a compiler installed, its time to write a C++ program. Let's start with the epitome of programming example's, it, the Hello world program. We'll print hello world to the screen using C++ in this example. Create a new file called hello.cpp and write the following code to it −
#include<iostream>
int main() {
std::cout << "Hello World\n";
}
Similar questions
Computer Science,
3 months ago
Biology,
3 months ago
Social Sciences,
6 months ago
Science,
6 months ago
Chemistry,
11 months ago
English,
11 months ago