السلام عليكم ورحمة الله وبركاته..
اخواني بغيت منكم مساعدة
لو سمحتوا ابغي شرح هالمثال بالتفصيل
Write an algorithm that calculates the factorial of an integer number.
Step 1: Input num
Step 2: FactN ← 1
Step 3: i ← 1
Step 4: while (i is less than or equal to num) FactN ← FactN x i Increment i End while
Step 5: Print “Factorial is ”, FactN
واذا عندكم اي دروس او اي شي يفيدني ف algorithm ياليت تساعدوني