how to write hello program in c++
Answers
Answered by
9
hey frnd .. Your answer is here ____________
include <iostream> using namespace std; int main() { cout << "Hello, World!"; return 0; }
include <iostream> using namespace std; int main() { cout << "Hello, World!"; return 0; }
Answered by
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.......
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