why case 5 is not working ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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; }

27th Jun 2021, 10:43 AM
Chinmay Anand
Chinmay Anand - avatar
2 Answers
+ 12
It's `Espresso` not `Expresso`☕
27th Jun 2021, 11:45 AM
Simba
Simba - avatar
+ 1
Thanks 😊😊
27th Jun 2021, 2:37 PM
Chinmay Anand
Chinmay Anand - avatar