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 that whether a given number is prime or not.
Program
# W.A.S.S to check that whether a given number is prime or not.
echo -e " enter number \c"
read number
i=2
flag=0
while test $i -lt $number #starts from 2 to number-1
do
if test `expr $number % $i` = 0 #if the no is completely divisible by i
then
flag=1
break
fi
i=`expr $i + 1`
done
if test $flag = 0
echo "Number is prime"
else
echo "Number is not prime"
Output
enter number 55
Number is not prime
enter number 13
Number is prime
enter number 21
BACKGROUND: This assignment illustrates the power of mobile applications. OBJECTIVES: 1. Mobile applications DESCRIBED TASK: This is a single part assignment.
Is it possible to get an assignment done within 2 hours
Play is as follows: 1.) Player places a bet a. Bet is on one of three choice i. "Player" will win ii. "Banker" will win iii. Tie between the "Player" and the "Banker
Write a program that takes names of 5 students in 2D Character Array and their GPAs in 1D array. Arrange the names in alphabetical order and display on screen along with GPA.
Use recursion to dene a function position which has as input an integer, a character and a string and returns the result of inserting the character in the string at the position s
Dynamic Binding: - Binding refers to the linking of a procedure call to the code to be executed in response to the call. Dynamic binding (late binding) means that the code associa
Write a program that accepts a date from the user in the form mm/dd/yyyy and then displays it in the form month dd, yyyy, where month is the name of the month. Enter a date (mm/d
The next major set of tasks to tackle are delete and update. Version control systems typically version updates to a ?le and only store the differences between the ?les. Two system
the whole paragraph disappear
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
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