#include <iostream>
int main() {
// Integer Data Types
int integerVariable = 10;
short shortIntegerVariable = 20;
long longIntegerVariable = 30;
long long longLongIntegerVariable = 40;
// Floating-point Data Types
float floatVariable = 3.14f;
double doubleVariable = 2.71828;
long double longDoubleVariable = 1.234567890123456789;
// Character Data Types
char charVariable = 'A';
wchar_t wideCharVariable = L'B';
// Boolean Data Type
bool booleanVariable = true;
// Void Data Type (Used for functions that do not return a value)
void functionWithoutReturnValue() {
// Function body
}
// Displaying Values
std::cout << "Integer Variable: " << integerVariable << std::endl;
std::cout << "Short Integer Variable: " << shortIntegerVariable << std::endl;
std::cout << "Long Integer Variable: " << longIntegerVariable << std::endl;
std::cout << "Long Long Integer Variable: " << longLongIntegerVariable << std::endl;
std::cout << "Float Variable: " << floatVariable << std::endl;
std::cout << "Double Variable: " << doubleVariable << std::endl;
std::cout << "Long Double Variable: " << longDoubleVariable << std::endl;
std::cout << "Char Variable: " << charVariable << std::endl;
std::wcout << L"Wide Char Variable: " << wideCharVariable << std::endl;
std::cout << "Boolean Variable: " << booleanVariable << std::endl;
return 0;
}