Answers for "cpp define variable"

C++
1

variabvles in c++

#include <iostream>

using namespace std
  
int main{
	int x = 3;
    float g = 4.0;
    long h = 1234567;
    double j = 1237886.099;
    cout<<x<<endl;
    cout<<h<<endl;
    cout<<g<<endl;
    cout<<j<<endl;
}
Posted by: Guest on June-19-2020
0

C++ variables

Create a variable called myNum of type int and assign it the value 15:
  int myNum = 15;
cout << myNum;
Posted by: Guest on May-07-2021

Browse Popular Code Answers by Language