If
the reverse of a string is equal to original string then it is called
palindrome
Output:
1. Enter the string:malayalam
The given string malayalam is a palindrome
2. Enter the string:india
The given string india is not a palindrome
Conclusion:
The program is error free
VIVA QUESTIONS:
1) What is meant by palindrome ?
Ans: If the reverse of a string/number is equal to original string/ number then it is called palindrome.
2) What is the use of gets() function ?
Ans: To read the string at a time
3) What is the use of puts() function ? Ans: To write the string at a time
(To execute this flow chart you should install raptor
software)
Download
raptor software to draw and execute flow chart
No comments:
Post a Comment