Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
prob w/the C prog. lang. book(ANSI C)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="JaSeong Ju, post: 1706722"] I copied and pasted the posted code and compiled fine. No errors or warnings. I used gcc 3.2.2 compiler on RH9. Here is the output: bash-2.05b$ ./a.out 0 -17 20 -6 40 4 60 15 80 26 100 37 120 48 140 60 160 71 180 82 200 93 220 104 240 115 260 126 280 137 300 148 bash-2.05b$ There should be int in front of main and return 0 before the last }. Also since you're computing the values, the variables should be either float or double. But aside from this, the code seems fine. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
prob w/the C prog. lang. book(ANSI C)
Top