C Polindrom Number

Posted: October 12, 2014 in Algorithms, C
Tags:

Baştan ve sondan okunuşunu aynı olan verilerdir. 12321 yada aba gibi…

C dili ile yazılmış program polindrom sayıları bulmaktadır.

#include
#include
#include

void bayram(int n)
{
if(n==1)
printf(“1”);
else
{

bayram(n-1);
printf(“%d”,n);
bayram(n-1);

}

}

int main()
{

int n;
printf(“Number enter::”);
scanf(“%d”, &n);
bayram(n);
return 0;
}

————————————————————————————————————————

27

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s