0

For my class in programming I was given this assignment:

Write pseudocode to represent the logic of a program that allows a user to enter two values then outputs the product of the two values

I wrote:

start
  input takeOne
  input takeTwo
  output takeONe, takeTwo
Stop

Or

Start    
   Declarations
        ouPutTwo = takeOne, takeTwo

   Input takeOne, takeTwo 

   Output ouPutTwo

Stop

Is this right? should I go like this?

Start    
   Declarations
        ouPutTwo = takeOne, takeTwo

   Input takeOne takeTwo 

   Output ouPutTwo

Stop
Toby Speight
  • 27,591
  • 48
  • 66
  • 103

0 Answers0