All pastes #759635 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-03 11:02 UTC
rendered paste body
#include "stdio.h"
#include "conio.h"
#include "string.h"
#include "vcl.h"
int main(int argc, char* argv[])
{
        char buf[255];
        scanf("%s",buf);
        int len=strlen(buf);
        int j=len-1;
        int flag=0;
        for(int i=0;i<=j;i++){
                if(buf[i]!=buf[j]){
                        flag=1;
                        break;
                }
                j--;
        }
        if(flag==1){
                puts("no");
                getch();
                return 0;
        }
        puts("yes");
        getch();
        return 0;
}