All pastes #818829 Raw Edit

Mine

public cpp v1 · immutable
·published 2007-12-16 16:00 UTC
rendered paste body
#include <iostream>#include <cmath>using namespace std;int main();{	int a;	cout << "For Polar to Rectangular press 1. \n For Rectangular to Polar press 2. ";	cin >> a;	if (a = 1)	{		double r, theta, x_solved, y_solved;		cout << "r value? ";		cin >> r;		cout << "theta value? ";		cin >> theta;		x_solved = r*cos(theta);		y_solved = r*sin(theta);		cout << "The coordinates are (x_solved,y_solved)";	}return 0;}