SWITCH - break case 2:

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&lt;&lt;&quot;2&quot;&lt;&lt;endl break case 3: cout&lt;&lt;&quot;3&quot;&lt;&lt;endl break default: cout&lt;&lt;&quot;error&quot;&lt;&lt;endl } }...
View Full Document

Ask a homework question - tutors are online