write a function named, smallestValue, that accepts five integers and return the smallest integer accepted.( just write a function)

Ok, I did it! Now its your turn.

This forum is not for people to do things for you. Its to help you. Make an attempt before asking for help.

Instead of posting "Write this for me!" post "I wrote this: <code here> but it doesn't work, can you explain why?"

As for the function you intend to write, it is a fairly rudimentary example of C++ syntax. If you understand how functions, variables and if statements work then you should be fine.

I did not just read..

write a function named, smallestValue, that accepts five integers and return the smallest integer accepted.( just write a function)

Please tell me this is not given to you as a home work 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.