>using System; >using System.Collections.Generic; >using System.Linq; >using System.Text; > >namespace ConsoleApplication1 >{ > class Program > { > static void Main(string[] args) > { > Tester tester = new Tester(); > tester.test(); > } > > } > class Tester > { > public void test() > { > Console.WriteLine("Veuillez saisir votre prénom."); > string prenom = Console.ReadLine(); > Console.WriteLine("Veuillez saisir votre age."); > string age = Console.ReadLine(); > Console.WriteLine("Bonjour " + prenom + ", vous avez " + age + " ans."); > } > } >} >This code works; no error. But for some reason, the command window only shows the first line of your code:
"Veuillez saisir votre prénom."
Two other lines are not showing.