วันจันทร์ที่ 28 ธันวาคม พ.ศ. 2552

ส่งงานท้ายบทที่ 3 ข้อ 2

#include
#include
#include
void main()
{
int M;
float V;
clrscr();
gotoxy(25,5);cout<<"---**------**-----**----"<gotoxy(25,6);cout<<"* Pornsuwan Sukklay *"<gotoxy(25,7);cout<<"* No.04 *"<gotoxy(25,8);cout<<"---**------**-----**----"<cout<BB :cout<<"Input M = ";cin>>M*10/100;
if(M<=0){cout<<"!!!! Ur Score Error!!!"< goto BB;
}//end if
else {
if(M<=1000) V=M*3/100;
else if(M<=2000) V=M*5/100;
else if(M<=5000) V=M*7/100;
else if(M<=10000) V=M*9/100;
else if(M>10000) V=M*10/100;
cout<<"Money ="< cout<<"VAT ="< cout<<"SUM ="< cout<<"COUNT ="<}
getch();
}//end Program

ไม่มีความคิดเห็น:

แสดงความคิดเห็น