1. C# / Говнокод #19010

    +5

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    if (logsData.Count == 1) {
    				msg += logsData [logsData.Count - 1] + "\n";
    			} else if (logsData.Count == 2) {
    				msg += logsData [logsData.Count - 2] + "\n";
    				msg += logsData [logsData.Count - 1] + "\n";
    			} else if (logsData.Count == 3) {
    				msg += logsData [logsData.Count - 3] + "\n";
    				msg += logsData [logsData.Count - 2] + "\n";
    				msg += logsData [logsData.Count - 1] + "\n";
    			} else if (logsData.Count == 4) {
    				msg += logsData [logsData.Count - 4] + "\n";
    				msg += logsData [logsData.Count - 3] + "\n";
    				msg += logsData [logsData.Count - 2] + "\n";
    				msg += logsData [logsData.Count - 1] + "\n";
    			} else if (logsData.Count >= 5) {
    				msg += logsData [logsData.Count - 5] + "\n";
    				msg += logsData [logsData.Count - 4] + "\n";
    				msg += logsData [logsData.Count - 3] + "\n";
    				msg += logsData [logsData.Count - 2] + "\n";
    				msg += logsData [logsData.Count - 1] + "\n";
    			}

    Запостил: kschingiz, 12 Ноября 2015

    Комментарии (4) RSS

    Добавить комментарий