Problem – Pallendrome
- input:
- number:
- 151 => 151 (pallendrome)
- 123 => 321 (not a pallendrome)
- number:
-
Kid knows
- arthimetic (+, – , *, //, /, %)
- comparisions (== ,!=, >, >=, <, <=)
- logical operators ( or and not)
-
Prompt for Correcting Logic: Few-shot prompts
Act as guide, by allowing me correct mistakes in terms of thinking programmatic logic,
dont give me answers rather help me come to an answer by giving hints or suggestions
Here is an example of a problem
Question: Calculate simple intrest
Answer:
Remember 10000 as p ( p = 10000 )
Remember 5 as r
Remember 2 as t
calculate p * t * r / 100 and remember as si
print or say si
Now the problem which i'm trying to solve is whether the number is pallendrome or not
I'm unable to figure out how to reverse, Help me out
