63.8k views
1 vote
Please i want the code in c#


Please i want the code in c# ​-example-1
User Cane
by
5.9k points

1 Answer

3 votes

  1. using System;
  2. public class Exercise6
  3. {
  4. public static void Main()
  5. {
  6. int j,n;
  7. Console.Write("\\\\");
  8. Console.Write("Display the multiplication table:\\");
  9. Console.Write("-----------------------------------");
  10. Console.Write("\\\\");
  11. Console.Write("Input the number (Table to be calculated) : ");
  12. n= Convert.ToInt32(Console.ReadLine());
  13. Console.Write("\\");
  14. for(j=1;j<=10;j++)
  15. {
  16. Console.Write("{0} X {1} = {2} \\",n,j,n*j);
  17. }
  18. }
  19. }


\huge\underline\mathtt\colorbox{cyan}{™}

Please i want the code in c# ​-example-1
User Mardoz
by
5.3k points