Senza titolo

Run Settings
LanguageC#
Language Version
Run Command
using System; class MainClass { static void Main() { string nome1 = "Pere"; float n1 = 2.0f; float costo1 = 0.45f; float tot1 = n1 * costo1; string nome2 = "Banane"; float n2 = 3.0f; float costo2 = 0.50f; float tot2 = n2 * costo2; string nome3 = "Ananas"; float n3 = 1.0f; float costo3 = 2.10f; float tot3 = n3 * costo3; string nome4 = "TOTALE"; float totale = tot1 + tot2 + tot3; Console.WriteLine($"{nome1}\t {n1} * {costo1} = {tot1}"); Console.WriteLine($"{nome2}\t {n2} * {costo2} = {tot2}"); Console.WriteLine($"{nome3}\t {n3} * {costo3} = {tot3}"); Console.WriteLine($"{nome4}\t\t {totale}"); } }
Editor Settings
Theme
Key bindings
Full width
Lines