how to declare integer variable in c++ code example
Example 1: how to create an integer in c++
int num = 0;
Example 2: 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;