int number = 5;       // Integer
float f = 0.95;       // Floating number
double PI = 3.14159;  // Floating number
char yes = 'Y';       // Character
std::string s = "ME"; // String (text)
bool isRight = true;  // Boolean
// Constants
const float RATE = 0.8;

int age {25};         // Since C++11
std::cout << age;     // Print 25
Comments