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
using namespace std; int main() { // Create integer variables int length = 4; int width = 6; // Calculate the area of a rectangle int area = length * width; // Print the variables cout << "Length is: " << length << "\n"; cout << "Width is: " << width << "\n"; cout << "Area of the rectangle is: " << area << "\n"; return 0; }
Length is: 4
Width is: 6
Area of the rectangle is: 24