Rabu, 16 Oktober 2013

pseudocode

Blog 1

 1. Create a Pseudocode accept name,price,and quantity.
You need to calculate value as the product of price and quantity  and display the calculated value and the item name using variables.

begin

           string Name ;

           byte Quantity ;

           float price , Value ;


display “ input name of product “ ;

accept Name

display “ input quantity “ :

accept Quantity ;

     display “ input Price “ ;

     accept Price ;


     value = Quantity*Price

     display Value

     end

Tidak ada komentar:

Posting Komentar