Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
#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