<prompt> Ngola algorithm e khomphuthang factorial ea palo kaofela.nan  <response>: Instruction in English: Write an algorithm that computes the factorial of an integer. . Response in English: Here is an example algorithm to calculate the factorial of an integer:1. Begin by defining a function called factorial that takes an integer as its input.2. Check if the input integer is a negative number. If it is, return an error message stating that the factorial of negative numbers do not exist.3. Check if the input is equal to 0 or 1. If it is, return 1 as the output since the factorial of 0 and 1 is 1.4. Initialize a variable called result to 1.5. Create a loop that starts from 2 and goes up to and including the input integer.6. Inside the loop, multiply the current result with the loops current value and update the result with this new value.7. Once the loop finishes, return the result variable as the output.8. End the function.With this algorithm, the function factorial5 will return 120 as its output. . Response in Sesotho: Mohlala ke ona algorithm ea ho bala factorial ea palo e felletseng: 1. Qala ka ho hlalosa mosebetsi o bitsoang factorial o nkang palo e felletseng joalo ka tlhahiso ea eona. 2. Sheba hore na palo e felletseng ke nomoro e nyahamisang. Haeba ho joalo, khutlisetsa molaetsa oa phoso o bolelang hore factorial of negative numbers ha e eo. 3. Sheba hore na kenyo e lekana le 0 kapa 1. Haeba e le teng, khutlisetsa 1 e le tlhahiso ho tloha fektheri ea 0 le 1 ke 1. 4. Qala phetoho e bitsoang sephetho ho ea ho 1. 5. Etsa lupu e qalang ho tloha 2 me e nyolohele ho kenyeletsa le palo e feletseng ea ho kenya. 6. Ka hara lupu, atisa sephetho sa hajoale ka boleng ba hona joale ba lupu me u nchafatse sephetho ka boleng bona bo bocha. 7. Hang ha lupu e fela, khutlisa sephetho e le sephetho. 8. Qetella mosebetsi. Ka algorithm ena, mosebetsi factorial5 o tla khutlisa 120 joalo ka tlhahiso ea ona. 