Advertisement
Spocoman

05. HTML

Apr 17th, 2023
2,639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. using System.Text;
  5.  
  6. namespace HTML
  7. {
  8.     class Program
  9.     {
  10.         static void Main()
  11.         {
  12.             Console.WriteLine($"<h1>\n\t{Console.ReadLine()}\n</h1>");
  13.             Console.WriteLine($"<article>\n\t{Console.ReadLine()}\n</article>");
  14.  
  15.             string command;
  16.             while ((command = Console.ReadLine()) != "end of comments")
  17.             {
  18.                 Console.WriteLine($"<div>\n\t{command}\n</div>");
  19.             }
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement