Run ❯
Get your
own C#
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
using System; namespace MyApplication { class Program { static void Main(string[] args) { // Create integer variables int length = 4; int width = 6; // Calculate the area of the rectangle int area = length * width; // Print the variables Console.WriteLine("Length is: " + length); Console.WriteLine("Width is: " + width); Console.WriteLine("Area of the rectangle is: " + area); } } }
Length is: 4
Width is: 6
Area of the rectangle is: 24