Eval 3
Eval 3
#include <stdio.h>
int main()
{
int i = 1, Number, Exponent;
long Power = 1;
return 0;
}
B)
#include <stdio.h>
int main()
{
int i, Number = 1, count;
2)
#include <stdio.h>
#include <string.h>
int l = 0;
int h = strlen(str) - 1;
while (h > l)
{
if (str[l++] != str[h--])
{
printf("%s is not a palindrome\n", str);
return;
}
}
printf("%s is a palindrome\n", str);
}
int main()
{
isPalindrome("abba");
isPalindrome("abbccbba");
isPalindrome("geeks");
return 0;
}