1#include<iostream>
2using namespace std;
3
4int main()
5{
6cout << " hello world <<endl;
7
8 return 0;
9}
1// Your First C++ Program
2
3#include <iostream>
4
5int main() {
6 std::cout << "Hello World!";
7 return 0;
8}
1// Your First C++ Program
2
3#include <iostream>
4
5int main() {
6 std::cout << "Hello World!";
7 return 0;
8}
9
1#include <iostream>
2#include<conio.h> /* For getch() only */
3using namespace std;
4int main () {
5 int num = 10;
6 if (num % 2 == 0)
7 {
8 cout<<"It is an even number";
9 }
10getch(); /* getch is the function of conio.h */
11}
1#include<iostream>
2using namespace std;
3int main()
4{
5 system("pause"); //To pause the screen
6 return 0; //Not neccessary
7}