You are viewing a single comment's thread. Return to all comments →
c#
string main = ""; if (n % 3 == 0) { for (int i = 0; i < n; i += 3) { main += "555"; } Console.WriteLine(main); } else { int saklananbasamak = n; while (n > 2) { n -= 5; if (n % 3 == 0) { for (int i = 0; i < n; i += 3) { main += "555"; } for (int y = 0; y < saklananbasamak - n; y += 5) { main += "33333"; } Console.WriteLine(main); break; } } } if (main.Length == 0) Console.WriteLine(-1);
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and The Beast
You are viewing a single comment's thread. Return to all comments →
c#