th program i made does not work!!! it should input an integer between 1 and 9. and then output a palindrome.
for example if i input 5, the output should be 123454321.
if i input 1, it should output 1.
and so on...
this is the program i made:
#include <stdio.h>
int main()
{
int n, i;
printf ("Enter digit: ");
scanf ("%d",&n);
if ((n < 0) && (n > 9))
{
printf("number not in range\n");
}
for (i= 1; i <=n; count = i++);
pintf("%d", i);
for(i=n-1; i>=1; i--);
printf(ā%dā, i);
return 0;
}