This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Pi iii. Declare variables 1. Int main C 2. Your code [double radius; double area; double PI= 3.14159;] 3. (; tells the compiler that this line of code is done, like a period.) 4. /n (new line) 5. Order is not important 6. Spacing is important iv. Legal variable names have letters or _ (underscore) and can have numbers but cannot start with a number. f. Is it legal? i. Int six; ok (spelling matters for commands only ) ii. Int x; ok iii. Char user_choice; ok iv. Double area2; ok v. Double _time; ok vi. Int this4u; ok vii.String 4words; x fourwords 2. Math Operations 3. Input/ Output 4. Overall Program Set Up...
View Full Document
This note was uploaded on 06/30/2010 for the course PSYCH 129B taught by Professor Kupper during the Spring '07 term at UCLA.
- Spring '07