Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
W.A.S.S to check whether a given string is palindrome or not.
Program
# W.A.S.S to check whether a given string is palindrome or not.
#07MCG20
echo "Enter any string"
read str
len=`echo $str | wc -c`
len=`expr $len - 1`
result=""
while test $len -gt 0
do
temp=`echo $str | cut -c $len`
result=`echo $result$temp`
done
echo "$result"
if test "$result" = "$str"
then
echo "Given string is palimdrom"
else
echo "Given string is not palimdrom"
fi
Output
Enter any string
madam
Given string is palimdrome
mca
acm
Write a Prolog predicate has_duplicates(L) that is true if list L contains duplicated elements (that is at least 2 copies of an element). For instance: ?- has_duplicates([a,e,b,
What is CAI Explain its pitfalls
Applications of OOP, The promising areas for application of OOP include: Real-time systems Simulation and modelling Object-oriented databases Hypertext, hype
write c++ source code to find the number of digits in a given integer? pls ans
Define The if - else - if Statement - Computer Programming? The universal form is if (expression 1) {
Write a program that repeatedly prompts for and reads a positive integer value n and then calculates and displays the nth Fibonacci number
(a) Define a procedure called make-avl-tree which makes an AVL tree with one node. Also create another constructor build-avl-tree that creates an AVL tree from a root, left subtree
Internal Audit has been asked by the State to review the activities of The Commission on Workforce Development. The Commission was established several years ago by the state legis
CrowdSporting Website Development I want an advanced web developer to spend 1-2 days coding our newly designed website. It will be a single page scrolling site, fully designed a
Your program can be invoked with option: -d date, where date is entered in dd/mm/yyyy format. In this case, it must only print the following string: Found cookies expiring bef
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd