0

This is the code wrote so far..

I'm new to Cprograming. please help thank you!

```
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
//Compute f(n)=n!, for 0<=n<=100
void f(int n){
// Adjust the array a so that each array element contains a single
// digit without altering the number represented by the array a.
// Be sure to maintain m – the number of digits stored in the array a.
short a[158];
int m = 0;
a[m] = 1; // 0! = 1; a has m+1 digits
int i, j, k ;
for (k=2;k<=n;k++) { // compute k!
for (i=0;i<=m;i++)
a[i]*=k;
if(a[i]>=10) m++;
}
for(j=0;j=m;j++)
printf("%d! = %d",n,a[j]);
printf("%d",m);
}
/*
bool palindrome(unsigned n){
char d[10];
}
*/
void main(){
int i, j;
for(;;){
printf ("Enter your choice ( 1-factorial, 2-palindrome, ^z-exit ) :");
scanf ("%d",&i);
if (i==1){
printf ("Enter an interger >=0 and <=100 :");
scanf("%d",&j);
f(j);
}
/*Part B: Palindrome
else if(i==2){
}*/
else if (i==NULL){
break;
}
else printf("Input 1 or 2. Try again.");
}
getch();
}
```