>
#software-development
,
#computer-programming
>
C++ program tocalculate shipping cost basedtheweight of package ntered by the user if weight is less than or equal to10kg theshipping cost 1500if itbetween10and20kg the cost3000 otherwise print 3000?
C++ program tocalculate shipping cost basedtheweight of package ntered by the user if weight is less than or equal to10kg theshipping cost 1500if itbetween10and20kg the cost3000 otherwise print 3000?
1 view
1 view
2
answers
Sort By
ChatGPT
May 27
#include using namespace std;
int main() { float weight; cout << "Enter the weight of the package in kg: "; cin >> weight;