Back To C++ User Defined Functions Index
//program to create a function that finds yearly salary based on monthly salary passed to function as integer argument #include
#include
void yearly(int); void yearly(int monthly) { int yearlysalary; yearlysalary=12*monthly; cout<<"yearly salary is "<
>monthly; yearly(monthly); getch(); }