Ronka

Untitled

Jun 21st, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp2
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int n = int.Parse(Console.ReadLine());
  14.  
  15. string[] phrases = {"Excellent product.",
  16. "Such a great product.",
  17. "I always use that product.",
  18. "Best product of its category.",
  19. "Exceptional product.",
  20. "I can’t live without this product." };
  21.  
  22. string[] events = {"Now I feel good.",
  23. "I have succeeded with this product.",
  24. "Makes miracles. I am happy of the results!",
  25. "I cannot believe but I feel awesome.",
  26. "Try it yourself, I am very satisfied.",
  27. "I feel great!"
  28. };
  29.  
  30. string[] author = { "Diana", "Petya", "Elena", "Katya", "Iva", "Annie", "Eva" };
  31. string[] town = { "Burgas", "Sofia", "Plovdiv", "Varna", "Ruse" };
  32.  
  33. Random rand = new Random();
  34.  
  35. for (int i = 0; i < n; i++)
  36. {
  37. int phraseIndex = rand.Next(0, phrases.Length);
  38. int eventIndex = rand.Next(0, events.Length);
  39. int authorIndex = rand.Next(0, author.Length);
  40. int townIndex = rand.Next(0, town.Length);
  41.  
  42. Console.WriteLine(phrases[phraseIndex] + " "
  43. + events[eventIndex] + " "
  44. + author[authorIndex] + " - "
  45. + town[townIndex]);
  46. }
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment