I am writing a calculator program in C. I need a function definition for a function called Subtract() that will allow me to calculate the difference of several numbers entered by the user also need one for division
Just a beginner
0
Newbie Poster
Recommended Answers
Jump to PostThat's not so hard.. Have you tried anything yet? Have you learned about functions? Example:
int Substract(int x, int y) { //do something with x and y return answer; }
Niek
All 4 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
ithelp
757
Posting Virtuoso
Banned
Just a beginner
0
Newbie Poster
John A
1,896
Vampirical Lurker
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.