Attempted to do assignment, can't figure out where it is wrong.
So this is my terrible code. I thought it appeared decent, but it won't times a number and then it won't divide that number.
Code:
#include<iostream>
#include<cmath>
using namespace std;
const double g = 9.8;
int main()
{
int v, g, theta, division, multiplication;
cout<<"How far can he put the safety net?";
cin>> g >> theta;
division = v/g;
multiplication = division *sin(2*theta);
cout<< v << "*"<< g<< "="<< multiplication<< "/"<< division;
return 0;
}