Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as C++ by registered user xujiayu ( 5 years ago )
#include <stdio.h>
#include <conio.h>

int main()
{
	//nhap ten san pham , so luong va don gia
	//tinh tien va thue gia tri gia tang phai tra
	int tensanpham,soluong,dongia;
	printf("\nhay nhap ten san pham: ");
	scanf("%s",&tensanpham);
	printf("\nnhap so luong : ");
	scanf("%d",&soluong);
	printf("\nnhap don gia : ");
	scanf("%d",&dongia);
	int tien;
	tien =soluong*dongia;
	float thue;
	thue = tien*0.1;
	printf("\n%d * %d = %d",soluong,dongia,tien);
	printf("\n%d * 0.1% = %f",tien,thue);



	
	
	




	getch();
	return 0;

}

 

Revise this Paste

Your Name: Code Language: