fork download
  1. /******************************************************************************
  2.  
  3. Welcome to GDB Online.
  4.   GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby,
  5.   C#, OCaml, VB, Perl, Swift, Prolog, Javascript, Pascal, COBOL, HTML, CSS, JS
  6.   Code, Compile, Run and Debug online from anywhere in world.
  7.  
  8. *******************************************************************************/
  9. #include <iostream>
  10. using namespace std;
  11.  
  12. int main()
  13. {
  14. int w=3;
  15. int l =2;
  16. cout <<"width = "<< "\""<<w <<"\""<<std::endl;
  17. cout <<"length = "<< l <<std::endl;
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5296KB
stdin
45
stdout
width = "3"
length = 2