bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/C++/C++ Tutorial
C++•C++ Tutorial

C++ Output Numbers

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind C++ Output Numbers?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

#___ <iostream>

C++ Print Numbers

You can also use cout() to print numbers.

However, unlike text, we don't put numbers inside double quotes:

Example

#include <iostream>
using namespace std;
int main() {
  cout << 3;
  return 0;
}

Example

cout << 3 + 3;

Example

cout << 2 * 5;

Previous

C++ Output (Print Text)

Next

C++ New Lines