Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Advertisement_Message
- {
- public class Advertisement_Message
- {
- public static void Main()
- {
- string[] phrases = "Excellent product|Such a great product|I always use that product|Best product of its category"
- .Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
- string[] events = "Now I feel good.|I have succeeded to change.|That makes miracles.|I cannot believe but now I feel awesome.|Try it yourself, I am very satisfied."
- .Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
- string[] authors = "Diana, Petya, Stella, Elena, Katya, Iva, Annie, Misha"
- .Split(new char[] { ' ', ',' }, StringSplitOptions.RemoveEmptyEntries);
- string[] cities = "Burgas, Sofia, Plovdiv, Varna, Ruse"
- .Split(new char[] { ' ', ',' }, StringSplitOptions.RemoveEmptyEntries);
- Random rnd = new Random();
- int n = int.Parse(Console.ReadLine());
- for (int i = 0; i < n; i++)
- {
- Console.WriteLine("{0}. {1} {2} - {3}",
- phrases[rnd.Next(phrases.Length)],
- events[rnd.Next(events.Length)],
- authors[rnd.Next(authors.Length)],
- cities[rnd.Next(cities.Length)]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment