Well loads of problems. Lets discuss each pf the:
1. Learn to indent your code and do not insert linenumbers before each line. We dont need that, [ code ] tags does it for you.
See this.
2. Now the problems with code. First one is that you havn't inserted
'{' at beginning and '
}' at end of main() function.
3. In
sum = numberl + number2;line you have typed
numberl instead of
number1.
4. You have use printf() function improperly. It must be
printf("The sum is %d \n", sum);.
Read This.
5. Dont use system("pause"). Although it has nothing to do with errors but try using
getchar() instead.
Read This.
Last edited by vishesh; Sep 5th, 2007 at 3:41 am.
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
Offline 1,362 posts
since Oct 2006