generate functionWed, 30 Nov 2022

find if the given string has the letter "e" in it, and output an alert if so

#include <iostream> using namespace std; int main() { if(input.find("e") != std::string::npos) cout << "Yay! This string has an 'e' in it" << endl; }

Want to kickstart your project?Use the new AI Studio to create your code