Parameter return question

This is a discussion on Parameter return question within the C Programming forums, part of the General Programming Boards category; Here is the question:
Write the definition of a function printAttitude , which has an int parameter and returns nothing. ...

Parameter return question

Here is the question:

Write the definition of a function printAttitude , which has an int parameter and returns nothing. The function prints a message to standard output depending on the value of its parameter.
If the parameter equals 1, the function prints disagree
If the parameter equals 2, the function prints no opinion
If the parameter equals 3, the function prints agree
In the case of other values, the function does nothing.

"int" is just the data type. You need to declare a variable after it in the argument list, and use that variable in your "if()" statements (not the data type "int").
Also, the argument to an "if()" statement should be enclosed in parenthesis.