Menu
×
×
Correct!

Exercise:

Add the correct data type for the following variables:

int myNum = 9; double myDoubleNum = 8.99; char myLetter = 'A'; bool myBool = false; string myText = "Hello World";

Not Correct

Click here to try again.

Correct!

Next ❯
 myNum = 9;
 myDoubleNum = 8.99;
 myLetter = 'A';
 myBool = false;
 myText = "Hello World";

  
  
  




Completed 0 of 58 Exercises:

C++ Syntax
C++ Variables
C++ User Input
C++ Data Types
C++ Operators
C++ Strings
C++ Math
C++ Booleans
C++ If...Else
C++ Switch
C++ Loops
C++ Arrays
C++ References
C++ Functions
C++ Classes/Objects

×

Reset the Score?

This will reset the score of ALL 58 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 58 C++ exercises.

Share your score: