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 ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- string[] phrases = {"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." };
- string[] events = {"Now I feel good.",
- "I have succeeded with this product.",
- "Makes miracles. I am happy of the results!",
- "I cannot believe but I feel awesome.",
- "Try it yourself, I am very satisfied.",
- "I feel great!"
- };
- string[] author = { "Diana", "Petya", "Elena", "Katya", "Iva", "Annie", "Eva" };
- string[] town = { "Burgas", "Sofia", "Plovdiv", "Varna", "Ruse" };
- Random rand = new Random();
- for (int i = 0; i < n; i++)
- {
- int phraseIndex = rand.Next(0, phrases.Length);
- int eventIndex = rand.Next(0, events.Length);
- int authorIndex = rand.Next(0, author.Length);
- int townIndex = rand.Next(0, town.Length);
- Console.WriteLine(phrases[phraseIndex] + " "
- + events[eventIndex] + " "
- + author[authorIndex] + " - "
- + town[townIndex]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment