Bu yerda C++da raqamning faktoriyasini preprosessor yordamida hisoblash uchun yozilgan dastur: ``` #include <iostream> statik int const FACTORIALS[13] = { 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600 }; #define FACT(n) ((n) < 0? 1 : (n) > 12? INT_MAX : FACTORIALS[n]) main int) { int n = 5; std:: <<cout "The factorial of " << n " is " << FACT(n) << stdendl:: } ``` Ushbu dasturning natijasi quyidagicha bo'ladi: ``` 5 ning faktoriyasi 120 `` ` Agar foydalanuvchi 12 dan katta argumentni o'tsa, dastur
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence