[ create a new paste ] login | about

Link: http://codepad.org/oRyydPPQ    [ raw code | output | fork ]

C, pasted on Apr 26:
#include<stdio.h>
#include<conio.h>

int main()
{
	const unsigned int LuongCanBan = 650000;

	unsigned int TNCT;

	printf("\nNhap vao tham nien cong tac: ");
	scanf_s("%u", &TNCT);

	float HeSo;

	if (TNCT < 12)
	{
		HeSo = 1.92;
	}
	else if (TNCT >= 12 && TNCT < 36)
	{
		HeSo = 2.34;
	}
	else if (TNCT >= 36 && TNCT < 60)
	{
		HeSo = 3;
	}
	else   // TNCT >= 60
	{
		HeSo = 4.5;
	}

	float  Luong = HeSo * LuongCanBan;

	printf("\nLuong = %f", Luong);

	_getch();
	return 0;
}


Output:
1
Line 17: error: conio.h: No such file or directory


Create a new paste based on this one


Comments: