Réponses aux exercices les variables en c sharp ex6
Réponses aux exercices les variables en c sharp ex6


using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace exercice_6_les_variables { class Program { static void Main(string[] args) { double cote; double surface; Console.WriteLine("Saisir le coté du carré"); cote = Convert.ToDouble(Console.ReadLine()); surface = cote * cote; Console.WriteLine("La surface du carré est : {0}",surface); } } }