fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. char world[]={'H','i','.'};
  7. for(int i=0;i<3;i++){
  8. cout<<world[i];
  9. }
  10. string words="Hello world !";
  11. cout<<"\n"<<words;
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
Hi.
Hello world !