Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Globalization;
- using System.Linq;
- using System.Net;
- using System.Numerics;
- using System.Text;
- using System.Threading.Tasks;
- namespace Objects_and_Classes
- {
- class exercises
- {
- static void Main(string[] args)
- {
- int messagesNumber = int.Parse(Console.ReadLine());
- string[] phrases = new 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."
- };
- string[] events = new 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!"
- };
- string[] authors = new string[] {
- "Diana", "Petya", "Stella", "Elena", "Katya", "Iva", "Annie", "Eva"
- };
- string[] towns = new string[] {
- "Burgas", "Sofia", "Plovdiv", "Varna", "Ruse"
- };
- Random number = new Random();
- for (int message = 0; message < messagesNumber; message++)
- {
- int phraseIndex = number.Next(0, phrases.Length);
- int eventIndex = number.Next(0, events.Length);
- int authorIndex = number.Next(0, authors.Length);
- int townIndex = number.Next(0, towns.Length);
- Console.WriteLine(phrases[phraseIndex] + " " + events[eventIndex] + " " + authors[authorIndex] + " - " + towns[townIndex]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement