Read 2 numbers. If first is larger than second, display second, else display first.
That's for the smallest. For the largest reverse the two.
For each of the other two, it's easier to just create a variable, call it largest. Initialize it to a very small number, say -1. As you read each number, compare it to largest. If the number is larger than largest, set largest equal to the number. When you finish each list of numbers, then print largest.
Best answer
Read 2 numbers. If first is larger than second, display second, else display first.
That's for the smallest. For the largest reverse the two.
For each of the other two, it's easier to just create a variable, call it largest. Initialize it to a very small number, say -1. As you read each number, compare it to largest. If the number is larger than largest, set largest equal to the number. When you finish each list of numbers, then print largest.
Design step by steps algorithm on how to write the letter A and display the result
please give me an algorithm and a corresponding flow chart that displays list of numbers from 1 to 20.
To write an algorithm for dividing two numbers, follow these steps: Start by accepting two input numbers, say num1 and num2. Check if num2 is not equal to zero to avoid division by zero errors. If valid, calculate the quotient by dividing num1 by num2 and store the result. Finally, display the quotient. If num2 is zero, display an error message indicating that division by zero is not allowed.
maybe
1.Start Algorithm 2.Enter first number 3.Enter second number 4.Enter third number 5.Enter fourth number 6.Enter fifth number 7.Add five number 8.display five number / 2 9.Display result 10.End Algorithm
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.
das
n=100 loop until n = 9 print n n = n -1 end loop
jgfujtf
Start print "the sum of all even numbers is infinite" end
10001/999900