SWITCH - break case 2 cout<<"2"<<endl...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include <iostream> using namespace std void main() { int choice cin>>choice switch(choice) { case 1: cout<<"1"<<endl
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: break case 2: cout<<"2"<<endl break case 3: cout<<"3"<<endl break default: cout<<"error"<<endl } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online