- 2
why case 5 is not working ?
#include <iostream> using namespace std; int main () { int choice = 0; cin >> choice; /*1 - Latte 2 - Americano 3 - Espresso 4 - Cappuccino 5 - Macchiato */ //your code goes here switch (choice) { case 1: cout << "Latte" << endl; break; case 2: cout << "Americano" << endl; break; case 3: cout << "Expresso" << endl; break; case 4: cout << "Cappuccino" << endl; break; case 5: cout << "Macchiato" << endl; break; } return 0; }
2 Respuestas
+ 12
It's `Espresso` not `Expresso`☕
+ 1
Thanks 😊😊