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

งานบทที่ 3 ข้อ1

#include
#include
#include
void main()
{
double M,M1,M2,M3,M4,V,V1,V2,V3,V4;
clrscr();
gotoxy(25,5);
cout<<"------------------------"
gotoxy(25,6);cout<<" Kampanat Punaphirat"
gotoxy(25,7);cout<<" No.09 "
gotoxy(25,8);cout<<"-----------------------"
cout<cout<<"Input M = ";
cin>>M
if(M>=1 && M<=100000) V1=M*0.05;
cout<<"V1 ="<M1=M-100000;
cout<<"M ="<if(M>=100001 && M<=500000) V2=V1+(M*0.10);
cout<<"V2 ="<M2=M1-500000;
cout<<"M ="<if(M>=500001 && M<=1000000) V3=V2+(M*0.20);
cout<<"V3 ="<M3=M2-1000000;
cout<<"M ="<if(M>=1000001 && M<=4000000) V4=V3+(M*0.30);
cout<<"V4 ="<M4=M3-4000000;
cout<<"M ="<if (M>4000001){V=M*0.37;
cout<<"VAT ="<}

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

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