Ingresar un número positivo cualquiera. Decir si el mismo es o no primo utilizando un switch.
nclude <iostream> using namespace std; int main() { int num; cout << "I want to know your age." << endl; cin >> num; cout << "Your age is " << num << "." << endl; return 0; } A: You need to use the cin.fail() function to check if the input was successful. If it was successful