Computer Science, asked by shivadeb100pcir98, 1 year ago

how to write hello program in c++

Answers

Answered by divyagupta2
9
hey frnd .. Your answer is here ____________

include <iostream> using namespace std; int main() { cout << "Hello, World!"; return 0; }
Answered by tejasgupta
0
Heya!

Here's the code!

/////code starts............

#include<iostream.h>

int main() {

cout<<"Hello World"<<endl;

return 0;

}

/////code ends...........

Note: In some modern IDEs such VisualStudio2017, you don't have to type <iostream.h>; <iostream> will also work........

If you use int main() function, then you will have to type return 0; at the end of this program; you can also use void main() if you don't want to type.......

tejasgupta: pls mark as brainiest........
Similar questions