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
- Spring '07
- Logic ok d., ok vii.String 4words