Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int a, b;
- scanf("%d %d", &a, &b);
- if (a<=0 || b<=0) {
- printf("Nevaliden vlez");
- return 0;
- }
- if (a>b) {
- int temp = a;
- a = b;
- b = temp;
- }
- int count = 1;
- int newNum = 0;
- while (b>0) {
- newNum += ((b/10) % 10) * count;
- count *= 10;
- b/=100;
- }
- if (newNum == a) {
- printf("PAREN");
- } else {
- printf("NE");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement