Archived
What does the following code return:
static void Main(string[] args) { double ht=15.0;
double tva=20.0;
int nb_articles=4;
double total = ht + ht*(tva/100);
double totalnb=total*nb_articles;
Console.WriteLine("Le prix TTC d'un produit est = "+total); Console.WriteLine("Le prix TTC des "+nb_articles+" produits = "+totalnb); }
0
Community EvaluationsNo one has reviewed this question yet, be the first!
2
Initialize a new Vehiclue object containing a string field in C#7
Create an abstract Vehicle class implementing an ICarbody interface4
Simple inheritance between a parent class and a child class in C#4
The PFX Framework:2
An event in an ASP.NET application:2
What is the new syntax for creating an object in C# 9.0?2
Write a C# class with a private int age field and getter and setter methods for it.