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 print the count and sum of digits of a given number.
Program
# W.A.S.S to print the count and sum of digits of a given number.
echo "Enter the Number:"
read num
temp=0
sum=0
cnt=0
while test $num -gt 0
do
temp=`expr $num % 10` #extract the digit from nuber
sum=`expr $sum + $temp` #add the digit into sum
num=`expr $num / 10` #reduce no by dividing the no by 10
cnt=`expr $cnt + 1` #conter to count the no of digit
done
echo "Total No of digit in the give no is $cnt"
echo "Sum of digit:$sum"
Output
Enter the Number:
786
Total No of digit in the give no is 3
Sum of digit:21
You must implement the control mechanism for the robot arm so that it can safely move the blocks from the source pile to their destination, without colliding with any obstacles or
how design a website
The first task is to extend the NeoPhoneBookEntry and NeoPhoneBook classes to accommodate for four additional contact details: Ringtone, Vibration Pattern, Led Pattern and
OTRS Customisation using Perl, MySQL Programming OTRS is a perl based open source issue ticket management solution. Default performance features 'note-internal' that is visible
How to create a TCP client server program?
how to create a screen for messages for a data transmission system
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
write a program to sort the file sequential order and store on magnetic tape and print sorted tape as the output of the program.
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
Hi, Can any of you, tell me how to use Included Applications?
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