Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Quiz 3

Name:  Cantuba III, Cherry D.

Year and Section: DICT 1-5

Date:  April 26, 2021

#include <iostream>

using namespace std;

int main()

int id;

cout<< "(Valid Product ID: 1, 2, 5, 7, 9, 11)" << endl;

cout<< "Enter your Product ID:";

cin>> id;

switch (id) {

case 1:

cout<< "Price: 50.55";

break;

case 2:

cout<< "Price: 12.35";

break;

case 5:

cout<< "Price: 11.46";


break;

case 7:

cout<< "Price: 11.46";

break;

case 9:

cout<< "Price: 12.35";

break;

case 11:

cout<< "Price: 11.46";

break;

return 0;

You might also like