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 variables of different data types int items = 3; double pricePerItem = 4.25; double totalCost = items * pricePerItem; char currency = '$'; // Print variables Console.WriteLine("Number of items: " + items); Console.WriteLine("Price per item: " + currency + pricePerItem); Console.WriteLine("Total cost: " + currency + totalCost); } } }
Number of items: 3
Price per item: $4.25
Total cost: $12.75