Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Multiplication_Table
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int multiplyWith = Convert.ToInt32(args[0]);
  14. if (multiplyWith > 0 && multiplyWith <= 20)
  15. {
  16. Console.WriteLine("<!DOCTYPE html>");
  17. Console.WriteLine("<html>");
  18. Console.WriteLine("<head>");
  19. Console.WriteLine(" <title> Multiplication table </title>");
  20. Console.WriteLine("</head>");
  21. Console.WriteLine("<body>");
  22. Console.WriteLine(" Multiplication for number " + multiplyWith);
  23. Console.WriteLine(" <table>");
  24. for (int i = 1; i <= 10; i++)
  25. {
  26. Console.WriteLine(" <tr>");
  27. Console.WriteLine(" <td>" + i + "</td>");
  28.  
  29. Console.WriteLine(" <td>" + i * multiplyWith + "</td>");
  30. Console.WriteLine(" </tr>");
  31. }
  32. Console.WriteLine(" </table>");
  33. Console.WriteLine("</body>");
  34. Console.WriteLine("</html>");
  35.  
  36. }
  37.  
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement