skip to main |
skip to sidebar
#include
#include
#include
void main()
{
int M;
float V;
clrscr();
gotoxy(25,5);cout<<"---**------**-----**----"<gotoxy(25,6);cout<<"* Narubes Pitak *"<gotoxy(25,7);cout<<"* No.13 *"<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
#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<<"* Narubes Pitak *"<gotoxy(25,7);cout<<"* No.13 *"<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 ="<getch ();
}//end Program