H
last year
H9910523@gmail.comcountry asked

I didn't really understand print numbers.

Kelish Rai
Expert
last year
Kelish Rai answered

It looks like you're a bit confused about the difference between printing 67 (a number) and "67" (a string). No worries—let me break it down for you with a simple example.

When printing "67" (a string), you need to enclose it in quotation marks:

cout << "67";

But when printing 67 (a number), you don’t need quotation marks:

cout << 67;

Hope this helps! If you need more clarification, feel free to ask a follow-up question below—I'm happy to help.

C++
This question was asked as part of the Learn C++ Basics course.