Professional Documents
Culture Documents
Variable Explain
Variable Explain
**Variable**:
**Example**:
#include <stdio.h>
int main() {
// Declaration of variables
length = 5;
width = 3;
// Calculate area
return 0;
In this example:
- We assign the values `5` and `3` to the variables `length` and `width`, respectively.
- We calculate the area of the rectangle by multiplying `length` and `width`, and store the result in the variable
`area`.
Here, `length`, `width`, and `area` are variables that hold integer values. They serve as placeholders for storing
data that can be accessed and modified as needed during the execution of the program.