i cant get the program to work. what is wrong?
add-number ( integer a; integer b ) ( add-number = integer a + integer b )
Just so I'm clear about your requirements specification, you want a program to take any type and size of number from any source, add them, then divide them and output the result everywhere? The code should be written for no target in particular in any (or should that be 'every') language?
Just so I'm clear you know, because I want to get started on this work effort as soon as possible. Please verify my understanding. It is very urgent.
i need code to take numbers add them and divid by number
now send code plz
Thomas Brandl has already given you the 'C' equivalent of your original post - what more do you want?
If you didn't understand that small piece of 'C', what would be the use of sending any more?
Perhaps you should search here, if you need someone to do your project for you: http://www.keil.com/condb/ - just don't expect it to be for free!
Simple answer - NO
There are a number of reasons for this simple response. The most fundamental is:
WE DONT HAVE A F&%!@~G CLUE AS TO WHAT CODE YOU ARE AFTER!
send code now to nsmerz157@hotmail.com
For a start, that isn't a program - it's just a small snippet from a program.
Also, as already noted, it isn't in any programming language supported by Keil tools - so this is the wrong place to ask about it (especially without even stating what language it is supposed to be).
What is it supposed to do? How have you determined that it "doesn't work" - what tests have you conducted? have you thought about any error and/or warning messages that were given?
Again, as already noted, if you're intending to write a program in the 'C' programming language, then you really need to go right back to basics, get a decent textbook, and start at chapter 1.
Obviously, you're not familiar with C at all. Please study a C textbook before continuing! Just to illustrate what's wrong with your code: In C, your function would be
int add_number(int a, int b) { return a + b; }
What language are you using?
View all questions in Keil forum