Answers for "int variable c++"

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

how to write int variable c++

//Declare integer variable in C++
int x;
//Initialize integer variable
x = 1;

//Declaring and Initialize in same line
int y = 0;
Posted by: Guest on March-20-2021

Browse Popular Code Answers by Language