Write a program in with a function that takes two int parameters, adds them together, and then returns the sum. The program should ask the user for two numbers, then call the function with the numbers as arguments, and tell the user the sum.

Recommended Answers

All 2 Replies

That's quite the introduction you have there. How much does this job pay?

You know I'm kidding but your first post reads like homework. Try sharing what you have so far and what's stopping you from finishing this assignment.

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.