Control Statements

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; int main() { int time = -2; cin>>time; if (time < 10) { if(time > 0) { cout<< "Good Morning"; } else { cout<< "Invalid Time"; } } else if (time < 20) { cout << "Good day."; } else if (time < 24) { cout<<"Good evening"; } else { cout << "Invalid Time"; } cout<<endl<<"Terminated"; return 0; }
#include <iostream> using namespace std; int main() { cout << "Hello World!!!"; return 0; }
#include <iostream> using namespace std; int main() { cout << "Hello World!!!!!"; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines