fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. /*
  6. Arthur Hla - ID 0445252
  7. CS 102 - Fall 2015 - Ohlone College
  8. */
  9. /*
  10. 1a.int
  11. 1b.int
  12. 1c.int
  13. 1d.string
  14. 1e.string
  15. 1f.string
  16. 1g.float
  17. 1h.float
  18. 1i.float
  19. 1j.int
  20. 1k.float
  21. */
  22. /*2a.*/ string name = "Arthur Hla" ;
  23. /*2b.*/ string ID = " 0445252 " ;
  24. /*2c.*/ cout << name ; cout << ID << "\n" ;
  25. /*2d.*/ int month = 5 ;
  26. /*2e.*/ int day = 20 ;
  27. /*2f.*/ int nonsense = month + day ;
  28. /*2g.*/ cout << "month = " ; cout << month ;
  29. /*2h.*/ cout << " day = " ; cout << day ;
  30. /*2i.*/ cout << " nonsense = " ; cout << nonsense ;
  31. /*2j.*/ float radius = 5 ;
  32. /*2k.*/ const float pi = 3.14159 ;
  33. /*2l.*/ float circumference = 2 * pi * radius ;
  34. /*2m.*/
  35. }
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
Arthur Hla 0445252 
month = 5 day = 20 nonsense = 25