Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a,b;
- int k=1;
- int pog,pom;
- int tocno=0;
- scanf("%d%d",&a,&b);
- if(a>b){
- pog=a;
- pom=b;
- }else
- {
- pog=b;
- pom=a;
- }
- int temp=pog;
- int temp2=pom;
- while(temp){
- temp/=10;
- if(k==1){
- if(temp%10==temp2%10){
- tocno=1;
- }else{
- tocno=0;
- break;
- }
- temp2/=10;
- }
- k*=-1;
- }
- if(tocno){
- printf("paren");
- }else
- printf("ne");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement