Zealpolytechnic: Micro Project
Zealpolytechnic: Micro Project
ZEALPOLYTECHNIC
MICRO PROJECT
Academic year: 2023-24
Programming in C (PIC)
Palindrome Checker
……………………………………………
……………………………………………
1)
2)
3)
4)
5)
The Palindrome Checker project in C aims to develop a simple yet efficient program to
determine whether a given string is a palindrome or not. A palindrome is a word, phrase,
number, or other sequence of characters that reads the same forward and backward. The
proposed solu on u lizes a string reversal technique, where the input string
is reversed and then compared with the original string to check for equality. The program is
designed to handle both single-word and mul -word palindromes, disregarding spaces,
punctua on, and case sensi vity. Through this project, learners can gain insights into string
manipula on, condi onal statements, and algorithmic thinking in the C programming
language.
#include<stdio.h>
int main()
{
scanf("%d",&n);
temp=n;
while(n!=0){
rem=n%10;
rev=rem+10*rev;
n=n/10;
}
if(temp==rev){
else{
return 0;
}