Demo entry 6635207

hello

   

Submitted by anonymous on Aug 17, 2017 at 04:40
Language: C#. Code size: 473 Bytes.

#include <stdio.h>

int main(void)
{
	int input = 0;
	
	printf("What is your income? ");
	scanf(" %d", &input);
	printf("\n");

	if (input >= 0 && input <= 14000)
	{
		printf("Tax rate: 10.5%% \n");
	}
	else if (input >= 14001 && input <= 48000)
	{
		printf("Tax rate: 17.5%% \n");
	}
	else if (input >= 48001 && input <= 70000)
	{
		printf("Tax rate: 30.0%% \n");
	}
	else if (input > 70000)
	{
		printf("Tax rate: 33.0%% \n");
	}

	return 0;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).