- #1
ineedhelpnow
- 651
- 0
Write a switch statement that checks origLetter. If 'a' or 'A', print "Alpha". If 'b' or 'B', print "Beta". For any other character, print "Unknown". Use fall-through as appropriate. End with newline.
Sample program:
Just do the <STUDENT CODE> part.
i don't get it. do i do case or if?
Sample program:
Code:
#include <iostream>
using namespace std;
int main() {
char origLetter = '?';
origLetter = 'a';
<STUDENT CODE>
return 0;
}
Just do the <STUDENT CODE> part.
i don't get it. do i do case or if?