Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace AdvertisementMessage
- {
- class Message
- {
- static void Main(string[] args)
- {
- List<string> phrases = new List<string>() { "Excellent product.", "Such a great product.", "I always use that product.", "Best product of its category.", "Exceptional product.", "I can’t live without this product." };
- List<string> events = new List<string>() { "Now I feel good.", "I have succeeded with this product.", "Makes miracles. I am happy of the results!", "I cannot believe but now I feel awesome.", "Try it yourself, I am very satisfied.", "I feel great!" };
- List<string> authors = new List<string>() { "Diana", "Petya", "Stella", "Elena", "Katya", "Iva", "Annie", "Eva" };
- List<string> cities = new List<string>() { "Burgas", "Sofia", "Plovdiv", "Varna", "Ruse" };
- int messageNumbers = int.Parse(Console.ReadLine());
- Random num = new Random();
- for (int i = 0; i < messageNumbers; i++)
- {
- Console.WriteLine($"{phrases[num.Next(0, phrases.Count)]} {events[num.Next(0, events.Count)]} {authors[num.Next(0, authors.Count)]} {cities[num.Next(0, cities.Count)]}.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement