Additional Charges On Suitcase:-
#include<iostream>
using namespace std;
int main(){
int weight,l,w,peri;
cout<<"ENTER LENGHT OF
SUITCASE : ";
cin>>l;
cout<<endl<<"ENTER
WIDTH OF SUITCASE : ";
cin>>w;
peri = 2*(l+w);
cout<<endl<<"perimeter
of suitcase : "<<peri<<endl;
cout<<endl<<"ENTER
THE WEIGHT OF SUITCASE : "<<endl;
cin>>weight;
if(peri>=108 &&
weight>=50)
cout<<endl<<"ADDITIONAL
CHARGE WILL BE APPLIED
"<<endl;
else
cout<<endl<<"ADDITIONAL
CHARGE WILL NOT BE APPLIED
"<<endl;
return 0;
}

Comments
Post a Comment