Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- namespace HTML
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- StringBuilder sb = new StringBuilder();
- string title = Console.ReadLine();
- sb.AppendLine("<h1>");
- sb.AppendLine(title);
- sb.AppendLine("</h1>");
- string content = Console.ReadLine();
- sb.AppendLine("<article>");
- sb.AppendLine(content);
- sb.AppendLine("</article>");
- string comment = string.Empty;
- while((comment=Console.ReadLine())!="end of comments")
- {
- sb.AppendLine("<div>");
- sb.AppendLine(comment);
- sb.AppendLine("</div>");
- }
- Console.WriteLine(sb);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement