expression syntax error occured on this program.. can someone tell me what's my mistake on this one? again some advice please.. :)
// this program display the price for shipping company
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
float weight, distance, price;
cout << " tell me your weight package";
cin >> weight;
if (weight > 0 && weight < 20)
{
cout << "sorry, this package is not available\n";
cout << "please try again later ";
}
else
{
cout << "okay, now please tell me how far it will travel(distance)";
cin >> distance;
There are several other logical expression errors as well. Remember - "=" is assignment, "==" is comparison.
Another suggestion: Use the Format: <> button to insert your code into a code tag; makes it easier to point you to a location in your code by line number.