answersLogoWhite

0

To write an algorithm for dividing two numbers, follow these steps:

  1. Start by accepting two input numbers, say num1 and num2.
  2. Check if num2 is not equal to zero to avoid division by zero errors.
  3. If valid, calculate the quotient by dividing num1 by num2 and store the result.
  4. Finally, display the quotient. If num2 is zero, display an error message indicating that division by zero is not allowed.
User Avatar

AnswerBot

1mo ago

What else can I help you with?

Related Questions

Accept 5 numbers in an array and display it?

Accept 5 numbers in an array and display it.


How to write an algorithm that accepts five numbers and displays the sum and average of the numbers?

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


Draw a flowchart to accept five numbers and display the sum of the numbers?

start, inputbox,inputbox,inputbox,inputbox,inputbox,progresh,display,stop 


Design an algorithm that will accept a perons name from the screen entered as surname first name separated by a comma Your program is to display the name as first name followed by three blanks?

Design an algorithm that will accept a perons's name from the screen entered as surname, first name, separated by a comma. Your program is to display the name as frist name, followed by three blanks, followed by the surname. -defining diagram -pseudocode algorithm


Draw a flowchart to accept 3 numbers and display the largest number?

draw a flowchart to display the first tenth even number


Write an algorithm that accept five numbers add them together and output the results instruct?

dont know use google instead dumb


How do you write the pseudo codes that will accept 7 numbers and display their sum?

Start accept 7 number calculate sum print sum stop


Flowchart for addition of two numbers?

start accept a,b and c c=a+b display c stop


Draw a flowchart to accept two numbers and check if the first is divisible by the second?

Convert this in flow chart and see if it can help Start Display "Enter 2 numbers" Accept 2 numbers A & B Divide the A with B Is result Zero? ---- No - A is not Dividable with second Yes - A is Dividable with second End


Write a program in COBOL to find the largest of N number?

identification division. program-id. greatest. environment division. data division. working-storage section. 77 a pic 999. 77 b pic 999. 77 c pic 999. procedure division. greatest. display "ENTER THE THREE NUMBERS:". accept a. accept b. accept c. if a > b and a > c display a "is greatest" else if b > c display b "is greatest" else display c "is greatest". display " thank you". stop run.


Write an algorithm and Draw a flowchart to accept two numbers and display the sum of the numbers?

#include using std::cout;using std::cin;using std::endl;int main(){double firstNumber = 0;cout > firstNumber;double secondNumber =0;cout


Draw a flowchart that will accept radius and display the area of circle?

program that display the area of a circle of a reduce