Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #44.3K
~2K People Reached
Favorite Forums
Favorite Tags

3 Posted Topics

Member Avatar for akvilio

Hey ... try this #include<stdio.h> #include<conio.h> void main() { int n,x,y,c=0,temp; clrscr(); printf("Enter the number: "); scanf("%d",&n); temp=n; while(n!=0) { x=n%10; c=c*10+x; y=n/10; n=y; } printf("Reverse of the number is: %d\n",c); if(c==temp) printf("Numbers are same"); else printf("Numbers are not same"); getch(); }

Member Avatar for akvilio
0
126
Member Avatar for Cpp_Addict

[CODE]hey cpp addict check this out. It is same as me_ansh but i have done some different type of coding. hope this will help u.... #include<stdio.h> #include<conio.h> void main() { char n[30]; int i=0,len=0; clrscr(); printf("Enter the string: "); scanf("%s",n); while (n[i++]!='\0') len++; for(i=0;i<len;i++) printf("\n%c",n[i]); getch(); } [/CODE]

Member Avatar for urjapandya
0
2K
Member Avatar for kymarscheng

#include<stdio.h> #include<conio.h> void main() { char str[50]; int len=0,i,j,flag=1; clrscr(); printf("Enter the string: "); scanf("%s",str); while(str[i++]!='\0') { len++; } for(i=0,j=(len-1);i<len/2;i++,j--) { if(str[j]!=str[i]) { flag=0; break; } } if (flag==1) printf("String is a Palindrome"); else printf("String is not a Palindrome"); getch(); } Hi.... Palindrome is the word or a phrase which …

Member Avatar for urjapandya
0
164

The End.