C++

C ++ – Variables

C++ Variables: Rules to create: Integer variable: #include <iostream>using namespace std; int main() {            int num = 10; // integer variable            cout << “The value of num is: ” << num << endl;            return 0;} Floating point variable: #include <iostream>using namespace std; int main() {            float num = 3.14; // floating point variable            cout << “The value …

C ++ – Variables Read More »

Scroll to Top