#include <iostream>
#include <string>
int main() {
std::cout << "Enter a fruit name: ";
std::string fruit;
std::cin >> fruit;
switch (int length = fruit.length(); length) {
case 5:
std::cout << "The fruit name has 5 letters. Is it 'Apple'?";
break;
case 6:
std::cout << "The fruit name has 6 letters. Is it 'Orange'?";
break;
case 7:
std::cout << "The fruit name has 7 letters. Is it 'Banana'?";
break;
default:
std::cout << "The fruit name has " << length << " letters.";
}
std::cout << std::endl;
return 0;
}