Search found 1 match

by naam nai
Mon Aug 27, 2012 9:25 am
Forum: Volume 123 (12300-12399)
Topic: 12342 - Tax Calculator
Replies: 33
Views: 14788

Re: 12342 Tax Calculator

Getting WA for this code: #include <stdio.h> #include <math.h> int main() { int i,n,money,check; double tax,a; scanf("%d",&n); for(i=1;i<=n;i++) { check=tax=0; scanf("%d",&money); if(money-180000>0) { money=money-180000; if(money-300000<=0) { a=((double)(money*10)/100); a=ceil(a); tax=tax+a; } else ...

Go to advanced search