Alright I read your previous post and I tried but now I'm getting this
error: expected primary-expression before "else"
error: expected ';' before "else"
This program has to:
1. If conversion to meteres is chosen, then the user inputs the feet, then it finds the metres.
2. If conversion to feet is chosen, then te user inputs metres, then it finds the feet.
3. If neither choice is chosen by the user, then it must output an error message
I'm...
I've tried many ways so it outputs a INVALID message for example if I entered the number 3 where it says DO YOU WISH TO CONVERT 1...
But I cannot seem to get it working.
I'm making a program for one of my programming classes and just needed some help!
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int number;
float feet;
float metres;
float conv1;
float conv2;
cout << "Do you wish to convert 1...