Things You'll Need
Instructions
Define a big number. Standard integers can take any value between -32,768 to +32,768 in C++. To program larger numbers, the long integer data type must be used which can take any value between -2,147,483,648 and +2,147,483,648. To define a long integer in with the program write the following code:
long int Variable_Name
Variable name can be be replaced by any arbitrary name.
Define an integer. Integers can be defined in C++ using the standard "int" data type. Write the following code in order to define an integer:
int Variable_Name
Define a number with an exponent. If the number is a whole number, it can be define using the following code:
int Variable_name=5^2
This creates a variable called Variable_name