Welcome to Scribd!
Academic Documents
Professional Documents
Culture Documents
Hobbies & Crafts Documents
Personal Growth Documents
int N;
float p,s,vrv,lt,ed,trf,pe;
char tr;
if(tr=='d'){
N=2*p + 2*s;
if(tr=='s'){
N=(10*p)/6 + (3*s)/2;
if(tr=='b'){
N=(10*p)/7 + s;
vrv=lt*ed*s;
trf=vrv*pe;
return 0;}