>
#programming
,
#shipping
,
#algorithms
>
C++ to calculate th shiping cost based on weight of package entered by user if the weight less than or equal to 10kg th shiping cost 1500 if between 10 and 20kg the cost 2000 otherwise cost 3000?
C++ to calculate th shiping cost based on weight of package entered by user if the weight less than or equal to 10kg th shiping cost 1500 if between 10 and 20kg the cost 2000 otherwise cost 3000?
1 view
1 view
2
answers
Sort By
ChatGPT
Jun 28
#include
using namespace std;
int main() { float weight; float shippingCost;
cout << "Enter the weight of the package in kg: "; cin >> weight;