Question: Questions: 1 . Apply the program in figure 6 . 1 3 and make it work. 2 . Take the entire string hello my name
Questions:
Apply the program in figure and make it work.
Take the entire string hello my name is Hakan Koyuncu by using scanf function. research on google
#include
int main
char str;
printfEnter a string: ;
scanf
str;
printfYou entered: s
str;
Check if a string is palindrome example: Hannah, radar, etc.
#include
#include
int main
char str;
int i length;
int isPalindrome ;
printfEnter a string: ;
scanfs str;
length strlenstr;
for i ; i length ; i
if stri strlength i
isPalindrome ;
break;
if isPalindrome
printfThe string is a palindrome.
;
else
printfThe string is not a palindrome.
;
Homework: Check if the input sentence is a palindrome sentenceexample: "Madam, Im Adam." when considering palindrome sentence, spaces and punctuation are often ignored.hint you can use isalnum function in ctype.h library
Questions:
Apply the program in figure and make it work.
Take the entire string hello my name is Hakan Koyuncu by using scanf function. research on google
Check if a string is palindrome example: Hannah, radar, etc.
Homework: Check if the input sentence is a palindrome sentenceexample: "Madam, Im Adam." when considering palindrome sentence, spaces and punctuation are often ignored.hint you can use isalnum function in ctype.h library
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
