Write a program that does the following: 1. Declare 3 variables: An int variable qty
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that does the following:
1. Declare 3 variables:
• An int variable ‘qty’
• A double variable ‘price’
• A string variable ‘name’
2. Store quantity, price, and name of a product in these variables by assigning literal values to these variables.
3. The program should display these values on the screen as follows, using a mix of text and the above variables Product Name is the product, its price is $45 You bought 150 quantities.
Related Book For
Database Systems A Practical Approach to Design Implementation and Management
ISBN: 978-0132943260
6th Edition Global
Authors: Thomas Connolly, Carolyn Begg
Posted Date: