ÇÁ·Î±×·¡¹Ö

 3206, 6/161 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   answp
   http://a
   [re] ¾îµð°¡ ¹®Á¦Àϱî¿ä?

http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_programming&no=1830 [º¹»ç]


#include <stdio.h>

void Palindrome(char *v);

int main(void)
{
    char arr[100];
    
    printf("¹®ÀÚ¿­ ÀÔ·Â : ");
    scanf("%s",arr);
    
    Palindrome(arr);
    
    return 0;
}

void Palindrome(char *v)
{
    int i=0;
    int x,y;
    int result=0;
    
    while(v[i]!='\0')
        i++;
        
    y=i-1;
    
    for(x=0;x<i;x++)
    {

        if(v[x]!=v[y])
        {
            result++;
        }

        y--;
    }
    
    if(result==0)
    printf("ȸ¹®ÀÔ´Ï´Ù.\n");
    
    else
    printf("ȸ¹®ÀÌ ¾Æ´Õ´Ï´Ù.\n");
}

±×·¡µµ C´Â È¥ÀÚ ¸¹ÀÌ »ý°¢ÇÏ¼Å¾ß Çմϴ٠ȥÀÚ ¹¹°¡ ¹®Á¦ÀÎÁö »ý°¢
¸¹ÀÌ ÇϽøé ÇÁ·Î±×·¡¹Ö ÀëÀ̸¦ ´À³¥°Ì´Ï´Ù.
¾ÈµÇ´Ù°¡ ±× µÇ´Â´À³¦^^¤» Á¤¸» ³¡³»ÁÝ´Ï´Ù~

  Hit : 2756     Date : 2009/01/16 08:06



    
answp ¾Æ Âü°í·Î ¹®Á¦ Ç®¾ú¾î¿ä 2009/01/16  
3106   c¾ð¾î ¾Ë°í¸®Áò Áú¹®ÀÔ´Ï´Ù.[3]     alstn8150
10/12 3731
3105   "À©µµ¿ì¿¡¼­ ¼ö»óÇÑ Æ÷Æ® °­Á¦·Î Á×ÀÌ´Â Åø"¿¡ ´ëÇÑ...[1]     alswlgns333
01/19 3022
3104   n!À» ±¸ÇÏ´Â ÄÚµå[7]     alswovkdlxj
05/16 3390
3103   À©µµ¿ì ºñ½ºÅ¸´Â xp ¶û ¸í·É¾î°¡ Ʋ·Á¿ä?[4]     alwjdgmlwn01
06/17 2776
3102   posix-c¿Í ±×³É C¾ð¾îÀÇ Â÷ÀÌÁ¡À» ¾Ë·ÁÁÖ¼¼¿ä^^     amsalja
06/29 2700
3101   °£´ÜÇÑ ½©ÇÁ·Î±×·¡¹Ö Áú¹®ÀÔ´Ï´Ù.[4]     amsalja
08/06 2686
3100   C¾ð¾î ¼Ò½ºÁú¹®ÀÔ´Ï´Ù![5]     an0088
01/05 5119
3099   Á¦ Çϵåµð½ºÅ©Dµå¶óÀ̺꿡 vc_red¶ó´Â °ÍµéÀÌ..     anbbyong
05/07 22032
3098   gccÄÄÆÄÀÏ·¯ °ü·Ã[1]     anchor37
09/18 3065
3097   ±×·³ gcj¶ó´Â ¸í·É¾î´Â ÀÚ¹ÙÄÄÆÄÀÏ·¯ ¿ªÈ°À» Çϴ°ǰ¡¿ä?[2]     anchor37
09/19 3402
3096   ¸®´ª½º ÇÁ·Î±×·¡¹Ö Áú¹®ÀÔ´Ï´Ù.(¿¡ÄÚ ¼­¹ö/Ŭ¶óÀ̾ðÆ®)     anf777
12/03 4092
3095     [re] ÇØÄ¿½ºÄð ÁßÇб³ C¾ð¾î ¸¸È­¿¡ °üÇؼ­ Áú¹®Àä!![1]     answp
12/28 2778
    [re] ¾îµð°¡ ¹®Á¦Àϱî¿ä?[1]     answp
01/16 2755
3093       [re] [re] [ÀçÁú¹®]¼¼±×¸àÅ×ÀÌ¼Ç ¿À·ù[7]     answp
01/27 2787
3092   Áú¹®µå·Á¿©[1]     aoms1013
10/15 2670
3091   ÇØÅ·Åø¿¡¼­ ip ¾øÀÌ Çϵ忡 ½É´Â°Å¿¡´Â ¾î¶²°Ô ÀÖÀ»±î¿ä?[2]     aowlrgmlals
11/27 4275
3090   win7¿¡¼­ Å°·Î±× ¸¸µé°í ½ÇÇà½Ã Áú¹® µå¸³´Ï´Ù.[1]     ÂôÄí
05/30 3188
3089   c++ ´Ù¸¥Å¬·¡½ºÀÇ ¸â¹öº¯¼ö °ª °¡Á®¿Í¼­ »ç¿ë¹æ¹ýÁú¹®ÀÌ¿©[2]     ÀÔ¹®»ý
02/02 15912
3088   c¾ð¾î °øºÎÇÏ·Á°í Çϴµ¥¿ä~[5]     apfhd86
07/08 2691
3087   Ã¥ ÃßõÁ» ºÎŹµå¸³´Ï´Ù.[2]     aplombna
01/25 2676
[1][2][3][4][5] 6 [7][8][9][10]..[161]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org