+ 1
I need help again pls. Switch Statement 1 -1stYear 2 -2ndYear 3 -3rdYear 4 -4thYear ----- Example: Enter Num:2 2ndYear
8 Respuestas
+ 3
Here you go:
int x;
cin >> x;
switch(x) {
case 1:
cout << "1stYear" << endl;
break;
case 2:
cout << "2ndYear" << endl;
break;
...
// optional
default:
cout << "Wrong Input" << endl;
}
+ 2
Yeah. Just add the remaining two cases. You might also want to print out a prompt for input. And, btw, if you would take the C++ course available here, it would help you a lot!
+ 1
#include <iostream>
using namespace std;
int main() {
int limit=4;
for (int i=0;limit;i++)
std::"1stYear-4thYear\n";
}
+ 1
Wrong
+ 1
My codes
+ 1
I need show codes pls and for run it :( need help guys
+ 1
I need run it in C++
+ 1
Show it pls