printf问题
提示: 作者被禁止或删除 内容自动屏蔽
2010-05-08 16:09
程序代码:
#include<stdio.h>
int main()
{
int income,tax;
printf("Please input your income:");
while(scanf("%d",&income)!=-1)
{
printf("\nIncome = %d greenbacks\n",income);
if(income<6000)
tax=(int)income*3/10.0;
else
tax=(int)income*6/10.0;
printf("Tax = %d greenbacks\n",tax);
printf("\nPlease input your income:");
}
return 0;
}

2010-05-08 16:13
2010-05-08 16:32
2010-05-08 16:36
2010-05-08 17:22
2010-05-08 17:34
2010-05-08 18:37
2010-05-08 19:54
2010-05-08 19:57
2010-05-08 22:42