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
Question 1 Discuss on UNIX kernel components 2 Explain process creation and process termination 3 When do a Deadlock occur? What are the Necessary Conditions for Deadlock
Define the The if statement - Computer Programming? The if statement is an influential selection statement and is used to control the flow of execution of statements. One of th
a given number is prime or not
My programming class uses Virtual Logic (not virtual studio) to learn how to program algorithms but we don''t get any assistance form the instructor so I am at a loss as to how I a
System.in and System.out should not be used anywhere in the programs except in main and only for testing purposes. All calculations should be done in a method. Note: To use J
I need an application that will gather data from one SQL Database and update another. Data is contained in dbo.CallList with following fields: Customer_ID, AlreadyPickedUp, Phone_N
Consider the following LP problem: min x 1 +3 x2 +x 3 -x 4 s.t. x 1 +x 2 +x 3 +x 4 ≥ 0 x 1 +x 2 -x 3 -x 4 ≥ 1 x 2 , x 3 ≥ 0 x 1 , x 4 ≤ 0. 1. Unique pr
Write a Perl program ghici.pl, one of the simplest computer games. The program should generate a random integer between 1 and 1000 and asks the user to guess it. If the user ?nds t
Expertsmind.com is expert in java assignment help JAVA Virtual Machine A Java exclusive device or java virtual machine (JVM) is an exclusive device able of undertaking Jav
Is there one can help me in the language Lisp and Prolog
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd