Day 24

C++ Output (Print Text)

The cout object, together with the << operator, is used to output values and print text.

Just remember to surround the text with double quotes (""):

Example

#include <iostream>

using namespace std;


int main() {

  cout << "Hello World!";

  return 0;

}

Comments

Popular posts from this blog

Day 2 Talking about computer science 💻

Day 5💻

Day 12 “C comments”