[ create a new paste ] login | about

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

C, pasted on Apr 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<stdio.h>
#include<conio.h>
int main(){

	int SoLuong, DonGia;
	printf("\nNhap vao so luong: ");
	scanf_s("%d", &SoLuong);

	printf("\nNhap vao don gia: ");
	scanf_s("%d", &DonGia);

	int Tien = SoLuong * DonGia;
	float Thue = Tien * 0.1;

	printf("\nTien = %d", Tien);
	printf("\nThue = %f", Thue);

	_getch();
	return 0;
}


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


Create a new paste based on this one


Comments: