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 number is Armstrong number or not.
Program
# W.A.S.S to check that whether a given number is prime or not.
echo "Enter the Number:"
read num
tnum=$num
temp=0
sum=0
while test $num -gt 0 #while loop
do
temp=`expr $num % 10` #extract the digit by digit
temp=`echo $temp^3 | bc` #make the cube of digit using bc - An arbitrary
#precision calculator
sum=`expr $sum + $temp` #calculate sum of cube of all the digit
num=`expr $num / 10`
done
if test $sum -eq $tnum #if the sum of cube of all the digit of given no is same as no
then
echo "Entered no $tnum is Armstrong number"
else
echo "Entered no $tnum is Not an armstrong number"
fi
Output
Enter the Number:
151
Entered no 151 is Not an armstrong number
153
Entered no 153 is Armstrong number
You are to Use ASCII operations to design an IA-32 assembly language program which will do addition and subtraction on positive integers of any length represented in characters. T
asample database report
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Genetic Diseases Problem Description Many human diseases could be controlled by the knowledge of the gene's structure and pattern. The human gene could be represented by fou
For this programming assignment, you are to develop a Fortran 90/95/2003 program to automate a useful task. The aim of the assignment is for you to reveal your competence in the Fo
Microsoft Intermediate Language in .NET When you create value in any terminology and gather, it will be changed to an 'Intermediate Language' (Microsoft Advanced Language - MSIL
The Maze Game from Laboratory 7 loads its maze directly in the program's code. This should be avoided as it requires the program to be recreated if the maze needs to be changed. In
Determine the solution to the following differential equation. x 2 y′′ + 3xy′ + 4 y = 0 Solution Find the roots to (3) first as generally. r(r -1) + 3r + 4 = 0 r
1. You have been asked to write a computer program that will figure out the total of an order when given the amount of the order ($200) and a sales tax rate of five percent. I w
1 Real and 2 Complex Eigenvalues From the real eigenvalue/vector pair, l 1 and ?h 1 e l1 t ?h 1 We find the other two solutions in identical manner which we did
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