Run ❯
×
Change Orientation
Change Theme, Dark/Light
#include
int main() { // Create integer variables int length = 4; int width = 6; int area; // Calculate the area of a rectangle area = length * width; // Print the variables printf("Length is: %d\n", length); printf("Width is: %d\n", width); printf("Area of the rectangle is: %d", area); return 0; }
Length is: 4
Width is: 6
Area of the rectangle is: 24