- #include <stdio.h>
- int main()
- {
- int test, i, n, rem, temp;
- scanf("%d", &test);
- for (i=1; i<=test; i++)
- {
- int reverse=0;
- scanf("%d" , &n);
- temp=n;
- while( temp!=0 )
- {
- rem=temp%10;
- reverse=reverse*10+rem;
- temp/=10;
- }
- if( reverse==n )
- printf ("Case %d: Yes\n", i);
- else
- printf ("Case %d: No\n", i);
- }
- return 0;
- }
Saturday, May 16, 2015
1225 - Palindromic Numbers (II) (Light OJ)
Subscribe to:
Post Comments (Atom)
Compare equality of two string in C
#include <stdio.h> #include<string.h> int main() { char* country = "Bangladesh"; char* country2; ...
-
#include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> using namespac...
-
#include<iostream> #include<cstdio> #include<algorithm> #include<cmath> #include<cstring> #include<ve...
-
#include<iostream> #include<cstdio> #include<cmath> #include<cstring> using namespace std; #define pf printf ...
meran0indaPittsburgh Jayson Sandell Crack
ReplyDeleteCyberLink PowerDVD
Eset NOD 32
fthehmuncakal