#include <stdio.h>
int jisuangongzi(int m_hoursworks,int m_hoursrate);
int mian()
{
int m_hoursworks=8;
int m_hoursrate;
int hourspay;
printf("请输入你的工作时薪:\n");
scanf("%d",&m_hoursrate);
hourspay=jisuangongzi(m_hoursworks, m_hoursrate);
printf("你的工资是如下:%d\n",hourspay);
return 0;
}
int jisuangongzi(int m_hoursworks,int m_hoursrate)
{
int hourspay=m_hoursrate*m_hoursworks;
return hourspay;
}
这是程序代码