Selasa, 08 Oktober 2013

Task 1 Make an example Pseudocode

Create the pseudocode to accept item name, price, and quantity. You need to calculate values as the product of price and quantity, and display the calculated!

Answer:

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