Originally Posted by
solidusMGS
You poppin' cough medicine or something? I fixed line 3, still wasn't it yo!
You need to learn how to read:
Code:
#include <iostream>
#include <cmath>
using namespace std;
const double g = 9.8;
int main()
{
cout << "Enter two Numbers" << endl;
double v1, v2;
cin >> v1 >> v2;
cout << "The sun of " << v1 <<
" and " << v2 <<
" is " << pow( v1, v2 ) / g * sin( theta ) <<
endl;
return 0;
}
Code:
$ c++ -o test test.cc
test.cc: In function ‘int main()’:
test.cc:18:46: error: ‘theta’ was not declared in this scope
" is " << pow( v1, v2 ) / g * sin( theta ) <<
^~~~~