my code is :
if(nemrh<=305){ nemf=75; }
if(305<nemrh<=325){ nemcarpan=0.05; nemkalan=nemrh-305; nemaratop=nemkalan*nemcarpan; nemf=76+nemaratop; }
if(325<nemrh<=350){ nemcarpan=0.04; nemkalan=nemrh-325; nemaratop=nemkalan*nemcarpan; nemf=77+nemaratop; }
if(350<nemrh<=370){ nemcarpan=0.05; nemkalan=nemrh-350; nemaratop=nemkalan*nemcarpan; nemf=78+nemaratop; }
if(370<nemrh<=393){ nemcarpan=0.0435; nemkalan=nemrh-370; nemaratop=nemkalan*nemcarpan; nemf=79+nemaratop; }
if(393<nemrh<=415){ nemcarpan=0.0454; nemkalan=nemrh-393; nemaratop=nemkalan*nemcarpan; nemf=80+nemaratop; }
if(415<nemrh<=440){ nemcarpan=0.04; nemkalan=nemrh-415; nemaratop=nemkalan*nemcarpan; nemf=81+nemaratop; }
if(440<nemrh<=465){ nemcarpan=0.04; nemkalan=nemrh-440; nemaratop=nemkalan*nemcarpan; nemf=82+nemaratop; }
if(465<nemrh<=490){ nemcarpan=0.04; nemkalan=nemrh-465; nemaratop=nemkalan*nemcarpan; nemf=83+nemaratop; }
if(490<nemrh<=515){ nemcarpan=0.04; nemkalan=nemrh-490; nemaratop=nemkalan*nemcarpan; nemf=84+nemaratop; }
if(515<nemrh<=540){ nemcarpan=0.04; nemkalan=nemrh-515; nemaratop=nemkalan*nemcarpan; nemf=85+nemaratop; }
if(540<nemrh<=563){ nemcarpan=0.0435; nemkalan=nemrh-540; nemaratop=nemkalan*nemcarpan; nemf=86+nemaratop; }
if(563<nemrh<=592){ nemcarpan=0.0344; nemkalan=nemrh-563; nemaratop=nemkalan*nemcarpan; nemf=87+nemaratop; }
if(592<nemrh<=620){ nemcarpan=0.0357; nemkalan=nemrh-592; nemaratop=nemkalan*nemcarpan; nemf=88+nemaratop; }
if(620<nemrh<=648){ nemcarpan=0.0357; nemkalan=nemrh-620; nemaratop=nemkalan*nemcarpan; nemf=89+nemaratop; }
if(648<nemrh<=678){ nemcarpan=0.0333; nemkalan=nemrh-648; nemaratop=nemkalan*nemcarpan; nemf=90+nemaratop; }
if(678<nemrh<=705){ nemcarpan=0.037; nemkalan=nemrh-678; nemaratop=nemkalan*nemcarpan; nemf=91+nemaratop; }
if(705<nemrh<=735){ nemcarpan=0.03333; nemkalan=nemrh-705; nemaratop=nemkalan*nemcarpan; nemf=92+nemaratop; }
if(735<nemrh<=766){ nemcarpan=0.0322; nemkalan=nemrh-735; nemaratop=nemkalan*nemcarpan; nemf=93+nemaratop; }
if(766<nemrh<=797){ nemcarpan=0.0322; nemkalan=nemrh-766; nemaratop=nemkalan*nemcarpan; nemf=94+nemaratop; }
if(797<nemrh<=830){ nemcarpan=0.0303; nemkalan=nemrh-797; nemaratop=nemkalan*nemcarpan; nemf=95+nemaratop; }
if(830<nemrh<=860){ nemcarpan=0.0333; nemkalan=nemrh-830; nemaratop=nemkalan*nemcarpan; nemf=96+nemaratop; }
if(860<nemrh<=894){ nemcarpan=0.0294; nemkalan=nemrh-860; nemaratop=nemkalan*nemcarpan; nemf=97+nemaratop; }
how i write this code that short way ? i want to right it short version. can anybody show me ?
Aucun commentaire:
Enregistrer un commentaire