+ 1

How do i solve this challenge using functions in c++?

Create a programme that checks whether or not a certain integer entered by the user is a palindrome or not: bool isPalimdrome(int x){ //code here} Int main(){ Int n; Cin>>n; If(isPalindrome(n)){ Cout<<n <<" is a palondrome"; } else{ cout<<n <<" is not a palindrome"; } }

29th Dec 2021, 3:01 PM
Michael Kamau
Michael Kamau - avatar
1 Answer
+ 3
There are many examples you can learn from in Code Playground, just be creative to use the search facility to find what you need 👍
29th Dec 2021, 3:10 PM
Ipang