//ultimate MATH PROGRAM
#include <iostream>
#include <string>
usingnamespace std;
int main ()
{
int a, b;
float c;
cout << "two integers" <<endl << "first value" << endl;
cin >> a;
cout << "second value" << endl;
cin >> b;
cout << "is this correct" << a << b;
char r;
cin >> r;
if (r == 'y'){
cout << "please enter float/ decimal";
cin >> c;
cout << c;
}
else(r == 'n'){ //says "expected ';' before '{' token
cout << "restart program";
break;
}
return 0;
}
I really have no idea what the problem is. I checked everywhere and didnt see a missing semicolon. Any ideas?