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!
4. Write a shell script to print the multiplication table of given number up to a given range.
Program
# Write a shell script to print the multiplication table of given number
# up to a given range.
echo "Enter NO.:"
read no
echo "Enter range:"
read r
i=1
while test $i -le $r #starts with 1 to given range
do
temp=`expr $no \* $i`
echo "$no * $i = $temp"
i=`expr $i + 1`
done
Output
Enter NO.:
5
Enter range:
6
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
15
4
15 * 1 = 15
15 * 2 = 30
15 * 3 = 45
15 * 4 = 60
This is the programming language of the Web. It is mainly used for validating forms. JavaScript & Java can be associated to each other. There exist several other differences betwee
**This programming assignment is for use in the LINUX/UNIX environment!! Introduction: System administration often requires custom written programs and tools. One problem a syste
One of the main strengths of the Perl programming language are its powerful text manipulation features. In this assignment, you will put them to use for writing a Perl program that
Explain the Do - While Statement - Computer Programming? A do - while loop is an exit controlled loop and the body of the loop gets executed at least once if the condition is n
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
question 1: In the opening lecture I spoke about general changes in business - flatter organizations, process orientation as opposed to functional silos, focus on supply chains, gr
Define a Prolog predicate flatten(List, FlattenedList) that asserts List is any nested list of atoms and FlattenedList is the same list with the nesting removed. The atom [] should
Villa La Fourche Ltd is a small family business situated in the East Coast of Mauritius, more precisely Trou d'eau Douce. The compound comprises of 6 independent villas, each of
1. Use mathematical induction to prove Whenever n is a positive integer. 2. Use loop invariant to prove that the program for computing the sum of 1,...,n is correct.
Define Reasons for using Functions? 1. Evade rewriting the same code over and over. 2. It is simpler to write programs and keep track of what they are doing. Codes are able t
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