hello! I just made a palindrome. that inputs an integer between 1 and 9, and should output:

for example if i imput 5
output
:123454321

if i input 1
output:
1

hello! I just made a palindrome. that inputs an integer between 1 and 9, and should output:

We're glad you wrote the program and it works. Very proud of you.

We're glad you wrote the program and it works. Very proud of you.

can you help me fix mine? it doesnt work.

the code i made is:
#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;
}

commented: 13 posts and you still haven't used code tags ... and for double posting! +0

We're glad you wrote the program and it works. Very proud of you.

the program a made doesn't work!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.