اكتب برنامج C لحساب مضروب (عاملي) رقم معطى
- برمجة
- برمجة سي c
- 2021-05-04
- Wassim
الأجوبة
/*Write a C program to calculate the factorial of a given number*/
#include <stdio.h>
void main(){
int i,f=1,num;
printf("Input the number : ");
scanf("%d",&num);
for(i=1;i<=num;i++)
f=f*i;
printf("The Factorial of %d is: %d\n",num,f);
}أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال