This program simply prints the text “Hello, world!” to the console. To run this program, you can use the following steps:

  1. Open Visual Studio Code.
  2. Create a new file and save it as hello_world.cpp.
  3. Copy and paste the code above into the file.
  4. Click the green play button in the top right corner of the editor.
banner
#include <iostream>

int main() {
  std::cout << "Hello, world" << std::endl;
  return 0;
}

This will compile and run the program, and you should see the text “Hello, world!” printed to the console.

You can also use the following keyboard shortcuts to run your program:

  • Ctrl+Shift+B – Compile and run the current file.
  • F5 – Run the current file.

banner
14 / 100 SEO Score

By Sandip Kumar Singh

I am Sandip Kumar Singh founder at Edgevertise Servise Pvt. Ltd. and a dedicated and passionate Computer Science professional .I am working as Assistant professor of (IT/Cs department) at R R Group of Institution Lucknow.

One thought on “Hello world program in Vs codecode”

Leave a Reply

Your email address will not be published. Required fields are marked *