printf问题
提示: 作者被禁止或删除 内容自动屏蔽
#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; }