fork(5) download
  1. Q. What is programming?
  2. A. Programming is when you give a computer a set of instructions you want it to carry out.
  3.  
  4. Q. What is the point of programming
  5. A. To make complicated tasks easier (and often automated).
  6.  
  7. Q. What are all the numbers between 1 and 100, when added to one another and totaled?
  8. A. I have no idea -- this is why we have programming.
  9.  
  10. Variables can be designated into 3 categories:
  11. Number stuff
  12. Letter and number stuff
  13. and Non letter / number stuff.
  14.  
  15. Numbers:
  16. Int - integer. Ex. 1, 5, 27, 239, -123
  17. Long - very long integer. Ex. 216,345,234
  18. Float - Floating point number. Ex. 1.5, 2.789, 213.123
  19. Double - Floatings point numbers that are large.
  20.  
  21. Variables.
  22. Q. What is a variable
  23. A. A variable is something you define.
  24.  
  25. a = 5; // a would be an integer
  26.  
  27. Letter and number stuff
  28. String - Whole words, and word / number mixtures. Ex."Hello World" "abc123"
  29. char - Single character. Ex: a, b, c......z, 1, 2, 3, $
  30.  
  31. Non-letter / number stuff
  32. Boolean - (bool in c++ and boolean in java). A variable that holds a true or false value.
  33.  
  34.  
  35. int itemsonhand = 9
  36. string helloStr = hello world
  37.  
  38. output itemsonhand - 9
  39. output helloStr - hello world
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty