New course! Every coder should learn Generative AI!
Try a free lesson0
example you want buy or sell
var quantity
if (input=="buy"){
quantity= console.readline();
console.writeline("you brought {0} items",quantity);
}
else if (input=="sell")
{
quantity= console.readline();
console.writeline("you sold {0}item",quantity)
}