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
Social Sciences,
1 month ago
World Languages,
1 month ago
Social Sciences,
3 months ago
Science,
3 months ago
Chemistry,
8 months ago
English,
8 months ago