Design a class Calculate as follows:
Data Members: num, f, rev
Member Methods:
Calculate(int n) – parameterized constructor
int prime( ) – returns 1 if prime, else 0.
int reverse( ) – returns 1 if palindrome, else 0.
void display( ) – checks and prints whether the number is a Prime
Palindrome or not.
void main( ) – creates an object and calls the necessary function.
Please give me the solution.
Answers
Answered by
0
Answer:
refer To attachment plz
drop some thx plz
mark me branilist answer plz
Attachments:
Similar questions