intro

Run Settings
LanguageC#
Language Version
Run Command
using System; using System.Collections.Generic; using System.Linq; class MainClass { static void Main() { string prodotto1 = "Pere"; string prodotto2 = "Banane"; string prodotto3 = "Ananas"; float pezzi1 = 2; float pezzi2 = 3; float pezzi3 = 1; float prezzo1 = 0.45f; double prezzo2 = 0.50f; Math.Round(totale, 2); float prezzo3 = 2.10f; float tot1 = prezzo1 * pezzi1 ; double tot2 = prezzo2 * pezzi2 ; float tot3 = prezzo3 * pezzi3 ; double totale = tot1 + tot2 + tot3; Console.WriteLine($"{prodotto1} {pezzi1} x {prezzo1} = {tot1} €"); Console.WriteLine($"{prodotto2} {pezzi2} x {prezzo2} = {tot2} €"); Console.WriteLine($"{prodotto3} {pezzi3} x {prezzo3} = {tot3} €"); Console.WriteLine($"TOTALE = {totale} €"); } }
Editor Settings
Theme
Key bindings
Full width
Lines